JCreator Classpath issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stubert
    New Member
    • Dec 2007
    • 20

    JCreator Classpath issue

    Hey guys I'm using a Window Vista laptop and I've been away from it for a while, but since I've came back I've been trying to compile programs on JCreator LE 4.5, it must be something ridiculous but I've tried everything I can possibly think of...

    This is the output from my file, which only displays "Hello World" to the console:

    --------------------Configuration: GUI2 - JDK version 1.6.0_03 <Default> - <Default>--------------------
    Command : C:\Program Files\Java\jdk1 .6.0_03\bin\jav ac.exe -g -classpath "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\classes \;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \rt.jar;C:\Prog ram Files\Java\jdk1 .6.0_03\lib\dt. jar;C:\Program Files\Java\jdk1 .6.0_03\lib\too ls.jar;C:\Progr am Files\Java\jdk1 .6.0_03\jre\lib \ext\dnsns.jar; C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\localedata .jar;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\sunjce_pro vider.jar;C:\Pr ogram Files\Java\jdk1 .6.0_03\jre\lib \ext\sunmscapi. jar;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\sunpkcs11. jar;C:\Users\Ad dy\Documents\JC reator LE\MyProjects\B anking\Banking\ Classes" -d "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\classes " C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\src @src_gui2.txt
    Directory : "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2"

    javac: invalid flag: C:\Program
    Usage: javac <options> <source files>
    use -help for a list of possible options
    -------------------------------------------------------

    I really need help with this because I find it easier to do my work on my laptop, cheers.

    -Stubert
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Originally posted by Stubert
    Hey guys I'm using a Window Vista laptop and I've been away from it for a while, but since I've came back I've been trying to compile programs on JCreator LE 4.5, it must be something ridiculous but I've tried everything I can possibly think of...

    This is the output from my file, which only displays "Hello World" to the console:

    --------------------Configuration: GUI2 - JDK version 1.6.0_03 <Default> - <Default>--------------------
    Command : C:\Program Files\Java\jdk1 .6.0_03\bin\jav ac.exe -g -classpath "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\classes \;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \rt.jar;C:\Prog ram Files\Java\jdk1 .6.0_03\lib\dt. jar;C:\Program Files\Java\jdk1 .6.0_03\lib\too ls.jar;C:\Progr am Files\Java\jdk1 .6.0_03\jre\lib \ext\dnsns.jar; C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\localedata .jar;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\sunjce_pro vider.jar;C:\Pr ogram Files\Java\jdk1 .6.0_03\jre\lib \ext\sunmscapi. jar;C:\Program Files\Java\jdk1 .6.0_03\jre\lib \ext\sunpkcs11. jar;C:\Users\Ad dy\Documents\JC reator LE\MyProjects\B anking\Banking\ Classes" -d "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\classes " C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2\src @src_gui2.txt
    Directory : "C:\Program Files\Xinox Software\JCreat orV4LE\MyProjec ts\GUI2"

    javac: invalid flag: C:\Program
    Usage: javac <options> <source files>
    use -help for a list of possible options
    -------------------------------------------------------

    I really need help with this because I find it easier to do my work on my laptop, cheers.

    -Stubert
    Can you set your classpath outside of the javac call? Make it an environment variable and set it then call javac? I suspect that somewhere in all that text the command line parser is getting confused.

    Comment

    Working...