Thread: Compiler Problems

Results 1 to 10 of 10
  1. #1 Compiler Problems 
    Registered Member
    Join Date
    Jan 2011
    Posts
    15
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    hey im getting trouble from my compiler for a source i have, don't know what seems to be the problem if anyone can explain/help?

    Compiler Code.
    Code:
    @echo off
    title Compiler
    echo Compiling...
    "C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe" -d ./bin ./Server/*.java
    pause
    cls
    What I get when i try to compile.
    Code:
    Compiling...
    javac: file not found: .\Server\*.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Press any key to continue . . .
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member TradgiK's Avatar
    Join Date
    Jan 2011
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    317 Server Compile // Just add this to your compile.bat

    @echo off
    :menu
    title TradgiK Compiler
    echo Errors:
    if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
    :compile
    for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
    if defined p (%p% -cp . *.java)
    if defined p (goto end)
    :error
    echo You do not have Java installed. Please download it at the site that is about to load.
    "%programfiles%\InternetExplorer\iexplore.exe" Java SE Downloads
    :end
    echo Compiling Finished.
    pause
    exit
    Project TradgiK

    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Jan 2011
    Posts
    15
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    same error i get from the last one i thinks its something aboutt the files
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    Oct 2010
    Posts
    716
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    are you using windows 7?
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Jan 2011
    Posts
    15
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    nope windows vista
    Reply With Quote  
     

  7. #6  
    Registered Member kiefer's Avatar
    Join Date
    Dec 2010
    Posts
    210
    Thanks given
    1
    Thanks received
    4
    Rep Power
    0
    change the 21 to 22 if that does not work try changing it to 23 or even back down to 19 or 20 but 22 should work
    Reply With Quote  
     

  8. #7  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Quote Originally Posted by Big Steven View Post
    hey im getting trouble from my compiler for a source i have, don't know what seems to be the problem if anyone can explain/help?

    Compiler Code.
    Code:
    @echo off
    title Compiler
    echo Compiling...
    "C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe" -d ./bin ./Server/*.java
    pause
    cls
    Code:
    @echo off
    title Compiler
    echo Compiling...
    "C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe" -d ./bin ./Server/*.java
    pause
    cls
    Change that to
    Code:
    @echo off
    title Compiler
    echo Compiling...
    "C:\Program Files\Java\jdk1.6.0_22\bin\javac.exe" -d ./bin ./Server/*.java
    pause
    cls
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jan 2011
    Posts
    15
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    nothing worked i dont think its java
    Reply With Quote  
     

  10. #9  
    Registered Member Durfa 1's Avatar
    Join Date
    Sep 2009
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hi, can you tell us what source you are using? Also are you running a 32 bit or 64 bit computer? With this information, i beleive i can help you
    "Don't tell me the sky is the limit when there are footprints on the moon."
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Sep 2010
    Posts
    42
    Thanks given
    6
    Thanks received
    1
    Rep Power
    25
    A few things, first of all try looking where your java JDK is downloaded for example is it Program Files(x64) or Program files, what version of JDK and environmental variables granted you have all of these correctly you would have no errors if not I recommend looking up a starting server tutorial. I hope you get to the bottom of it.
    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

Similar Threads

  1. Compiler Problems PLEASE HELP
    By salutations in forum Help
    Replies: 8
    Last Post: 08-06-2010, 10:33 PM
  2. Few Problems
    By Sam in forum Help
    Replies: 5
    Last Post: 03-03-2010, 03:57 PM
  3. [Compiler] My Very Simple Compiler :)
    By xx Promises xx in forum Snippets
    Replies: 6
    Last Post: 01-20-2010, 10:42 AM
  4. 3 problems with compiler pless help
    By ates1 in forum Help
    Replies: 5
    Last Post: 05-03-2009, 07:51 PM
  5. Compiler Problems
    By Shemhamforash in forum Help
    Replies: 13
    Last Post: 01-29-2009, 06:42 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •