Thread: Server Compile Error Please Help!

Results 1 to 8 of 8
  1. #1 Server Compile Error Please Help! 
    Registered Member
    Join Date
    Dec 2009
    Posts
    488
    Thanks given
    11
    Thanks received
    12
    Rep Power
    15
    This is what I have in my Compiler:

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

    But when I go to compile i get this error:

    javac: file not found: *.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Press any key to continue . . .

    Any ideas on how to fix please????
    Reply With Quote  
     

  2. #2  
    Respected Member

    Join Date
    Jan 2009
    Posts
    5,682
    Thanks given
    1,093
    Thanks received
    3,494
    Discord
    View profile
    Rep Power
    5000
    there's no source files to compile?

    kinda like self explanatory... run the compiler in the source directory or cd to it.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    488
    Thanks given
    11
    Thanks received
    12
    Rep Power
    15
    Quote Originally Posted by InterwebzPixel View Post
    there's no source files to compile?

    kinda like self explanatory... run the compiler in the source directory or cd to it.
    im like new to coding so how would i do that?
    Reply With Quote  
     

  4. #4  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    redownload jdk cause it cant find javac.exe which all jdk versions should have. does the new update not have it?
    Reply With Quote  
     

  5. #5  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    25
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Discord
    View profile
    Rep Power
    3084
    Quote Originally Posted by animeking1120 View Post
    redownload jdk cause it cant find javac.exe which all jdk versions should have. does the new update not have it?


    You sir are an idiot.

    ON-TOPIC: javac cannot find *.java files. They are on different folder than compiler is.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Put the compiler with all the .java files. Make sure it's the right jdk path also
    Reply With Quote  
     

  7. #7  
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    28
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    Or make cd /source_folder

    Reply With Quote  
     

  8. #8  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    You're missing the source code.

    ::EDIT::
    1500th post.
    Reply With Quote  
     


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
  •