I have downloaded some files for an app that are .class files and one folder that is a META-INF file.
The files are on the C drive so in the command prompt i have typed cd C:\ then pressed enter.
Then I have typed java -cp.BlablaServ
I get this error message
Unrecognised option : -cp.BlablaServ
Could not create the Java virtual machine
Can anyone help me with this as I cant see what I am doing wrong
4 replies to this topic
#1
Posted 30 December 2010 - 08:29 AM
|
|
|
#2
Posted 30 December 2010 - 09:04 AM
Maybe this helps: http://forum.codecal...e-jar-file.html
#3
Posted 30 December 2010 - 10:40 AM
Ok I had a look at that topic and after following the instructions I get this error message 'jar' is not recognised as an internal or external command, operable program or batch file.
Any ideas?
Any ideas?
#4
Posted 30 December 2010 - 02:32 PM
I created a jar file in the end and had to make sure the JDK was in the correct path. I went to Start>Control Panel>System>Advanced>Environment Variables and selected Path and entered where the JDK was which was C:\java\jdk1.5.0_06\bin\ for me.
Otherwise to run the class file through the command prompt each time just enter
java -cp . BlablaServ
Make sure you enter the spaces
Otherwise to run the class file through the command prompt each time just enter
java -cp . BlablaServ
Make sure you enter the spaces
#5
Posted 02 January 2011 - 11:45 AM
Hi,
You shouldn't really have to create JAR in your case if you already know which one is the main class file to run.
Munir
You shouldn't really have to create JAR in your case if you already know which one is the main class file to run.
Munir
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









