Hi,
I'm developing from my unix terminal and I have a makefile that creates an object file for a java program. I can execute the object file on my school server, but i cant get it to work on my new macbook pro. Here's my makefile:
2 JAVASRC = hoppity.java
3 SOURCES = ${JAVASRC} Makefile
4 MAINCLASS = hoppity
5 CLASSES = hoppity.class
6 JARCLASSES = ${CLASSES}
7 JARFILE = hoppity
8
9 all: ${JARFILE}
10
11 ${JARFILE}: ${CLASSES}
12 echo Main-Class: ${MAINCLASS} >Manifest
13 jar cvfm ${JARFILE} Manifest ${JARCLASSES}
14 -rm Manifest
15 chmod +x ${JARFILE}
16
17 %.class: %.java
18 javac $<
19
20
After i make, i should be able to type in 'hoppity' and run the program from the command line, however i'm getting the following error:
-bash: hoppity: command not found
Is this a linker or classpath problem? Do i need to export something in my .bash_profile?
Thanks
I'm developing from my unix terminal and I have a makefile that creates an object file for a java program. I can execute the object file on my school server, but i cant get it to work on my new macbook pro. Here's my makefile:
2 JAVASRC = hoppity.java
3 SOURCES = ${JAVASRC} Makefile
4 MAINCLASS = hoppity
5 CLASSES = hoppity.class
6 JARCLASSES = ${CLASSES}
7 JARFILE = hoppity
8
9 all: ${JARFILE}
10
11 ${JARFILE}: ${CLASSES}
12 echo Main-Class: ${MAINCLASS} >Manifest
13 jar cvfm ${JARFILE} Manifest ${JARCLASSES}
14 -rm Manifest
15 chmod +x ${JARFILE}
16
17 %.class: %.java
18 javac $<
19
20
After i make, i should be able to type in 'hoppity' and run the program from the command line, however i'm getting the following error:
-bash: hoppity: command not found
Is this a linker or classpath problem? Do i need to export something in my .bash_profile?
Thanks