why do i compile wrong of SDK?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2005
Posts: 1
Reputation: Mathsniper is an unknown quantity at this point 
Solved Threads: 0
Mathsniper Mathsniper is offline Offline
Newbie Poster

why do i compile wrong of SDK?

 
0
  #1
Feb 8th, 2005
I had installed MinGW-3.2.0-rc-3.exe and i was trying to compile a simple code:
  1. public class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.println("Hello, World");
  4. }
  5. }
then i typed this command under vim, !java d:\progsaved\java\jdk\HellWorld, before i typed this !javac d:\progsaved\progsaved\java\jdk\HelloWorld.java to generate class file. The errors showed that
  1. C:\WINDOWS\system32\cmd.exe /c java -cp=d:\progsaved\java\jdk helloworld
  2. Unrecognized option: -cp=d:\progsaved\java\jdk
  3. Could not create the Java virtual machine.
  4. shell returned 1
  5. Hit any key to close this window...
why do i get this errors?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: why do i compile wrong of SDK?

 
0
  #2
Feb 8th, 2005
remove the = sign in your -cp=..... parameter.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1804 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC