S
saad
I am working on a project, and one module of the project
is written by a person in JAVA who passed away couple of months ago in
an accident.
Most of my work is in C/C++ though this module is in JAVA and I need
to manipulate
input and output of this work for my project, without going into
details of whats running inside, though,
if I get some control on that as well, thats a plus.
Now here is what I have already done.
Being a novice to JAVA, i installed latest JDK+Netbeans bundle
available.
Netbeans appears working perfectly fine (compiles and executing a
Hellow World
)
Here is the issue I am having.
The author of the work has given instructions to run the project. He
has both .java and .class
files included. Here is the directory structure.
A
|
->C
|
->P
|
->S
Both C and S have .java (and corresp .class) files.
According to the documentation, to run the project, i should go to
S and run following script:
-classpath Give_your_own_path_here(like /c/java/a/) A.S.Simulator $1
$2 $3
$1 $2 $3 appear to be some input variables i think.
Simulator file is in S (both .class and .java)
This script is in a file called startA.
On command line, I type ./startA while standing at S, and it gives me
this error:
java.lang.NoClassDefFoundError: A/S/Simulator
Exception in thread "main"
Can you guide me on cygwin part?
PS: My jdk is in another directory
Q2
============
How to I run this Simulator thing in NetBeans. How to create a project
such that all source files are included and build them to get a
running project.
NetBeans appears to me an easier GUI based route, but, since I am very
novice,
no clue where to start on it. This is kinda urgent as I need to show
this thing running to someone
tomorrow.
PS: I have experience in Visual C++ and know how to create projects n
stuff.
is written by a person in JAVA who passed away couple of months ago in
an accident.
Most of my work is in C/C++ though this module is in JAVA and I need
to manipulate
input and output of this work for my project, without going into
details of whats running inside, though,
if I get some control on that as well, thats a plus.
Now here is what I have already done.
Being a novice to JAVA, i installed latest JDK+Netbeans bundle
available.
Netbeans appears working perfectly fine (compiles and executing a
Hellow World
Here is the issue I am having.
The author of the work has given instructions to run the project. He
has both .java and .class
files included. Here is the directory structure.
A
|
->C
|
->P
|
->S
Both C and S have .java (and corresp .class) files.
According to the documentation, to run the project, i should go to
S and run following script:
-classpath Give_your_own_path_here(like /c/java/a/) A.S.Simulator $1
$2 $3
$1 $2 $3 appear to be some input variables i think.
Simulator file is in S (both .class and .java)
This script is in a file called startA.
On command line, I type ./startA while standing at S, and it gives me
this error:
java.lang.NoClassDefFoundError: A/S/Simulator
Exception in thread "main"
Can you guide me on cygwin part?
PS: My jdk is in another directory
Q2
============
How to I run this Simulator thing in NetBeans. How to create a project
such that all source files are included and build them to get a
running project.
NetBeans appears to me an easier GUI based route, but, since I am very
novice,
no clue where to start on it. This is kinda urgent as I need to show
this thing running to someone
tomorrow.
PS: I have experience in Visual C++ and know how to create projects n
stuff.