Thread: why i get this.. ?

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1 why i get this.. ? 
    Registered Member
    Join Date
    Feb 2012
    Posts
    408
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    javac: file not found: *.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Druk op een toets om door te gaan. . .

    i;ve jdk everything still saying this bullshit when i compile
    whyyy
    my vouches are on my profile.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by tlsown View Post
    javac: file not found: *.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Druk op een toets om door te gaan. . .

    i;ve jdk everything still saying this bullshit when i compile
    whyyy
    Because your trying to compile something which dosent exist in your compiler directorys, there is probably a "*.java" on its own, remove that
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2012
    Posts
    408
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    its in bin map tbh

    @echo off
    Title Compiler
    "C:\Program Files\Java\jdk1.6.0_24\bin\javac.exe" *.java
    pause


    still gettin error..
    my vouches are on my profile.
    Reply With Quote  
     

  4. #4  
    Registered Member Innovation's Avatar
    Join Date
    Jun 2011
    Posts
    294
    Thanks given
    128
    Thanks received
    29
    Rep Power
    11
    @echo off
    Title Compiler
    "C:\Program Files\Java\jre7\bin\java.exe" *.java
    pause


    Try that, change jre version according to yours.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2012
    Posts
    408
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    Exception in thread "main" java.lang.NoClassDefFoundError: */java
    Caused by: java.lang.ClassNotFoundException: *.java
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
    Could not find the main class: *.java. Program will exit.
    Druk op een toets om door te gaan. . .
    ?
    my vouches are on my profile.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2012
    Posts
    336
    Thanks given
    3
    Thanks received
    29
    Rep Power
    101
    Your compiler cannot find any .java files if you they are in a seperate file other than your compiler, for example: Compiler is in Source file and the Java files are in a Folder called Java in the Source folder you need to add something like this under the Title
    Code:
    cd ./Where you load your java files folder/


    VOUCHES
    [SPOIL]
    Quote Originally Posted by SacredPK View Post
    Vouch for African
    Quote Originally Posted by Raw Envy View Post
    Vouch for African seems like a nice guy and trustworthy
    [/SPOIL]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2012
    Posts
    408
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    the compiler (this one witth the erorr) is in bin folder..

    the other one works
    but idk why this one dont and there are class files not java
    my vouches are on my profile.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2012
    Posts
    336
    Thanks given
    3
    Thanks received
    29
    Rep Power
    101
    You don't need to compile the bin folder All the bin folder is, is the Java files compressed into Class files, when you compile, it automatically updates


    VOUCHES
    [SPOIL]
    Quote Originally Posted by SacredPK View Post
    Vouch for African
    Quote Originally Posted by Raw Envy View Post
    Vouch for African seems like a nice guy and trustworthy
    [/SPOIL]
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    To be honest... there is one simple fix for this... Use an IDE
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2012
    Posts
    408
    Thanks given
    15
    Thanks received
    2
    Rep Power
    20
    ok why it says run tbh
    my vouches are on my profile.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •