954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

why do i compile wrong of SDK?

I had installed MinGW-3.2.0-rc-3.exe and i was trying to compile a simple code:

public class HelloWorld {
	public static void main(String args[]) {
		System.out.println("Hello, World");
	}
}

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

C:\WINDOWS\system32\cmd.exe /c java -cp=d:\progsaved\java\jdk helloworld
Unrecognized option: -cp=d:\progsaved\java\jdk
Could not create the Java virtual machine.
shell returned 1
Hit any key to close this window...

why do i get this errors?

Mathsniper
Newbie Poster
1 post since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

remove the = sign in your -cp=..... parameter.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You