Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Eraserhead

macrumors G4
Original poster
Hey, I'm not sure if I'm asking the right question, but basically I have some java class files (from my University - specifically one called MaInput.class) I would like to be able to access this class file (and possibly some others) from any java .class file I run on my Mac, is this possible? It seems to be on the UNIX machines...
 
They will run fine, just ftp them over. Open a terminal window and execute them with the java command, e.g. java foo
 
cubist said:
They will run fine, just ftp them over. Open a terminal window and execute them with the java command, e.g. java foo
Thanks, thats probably the easiest thing to do...
 
jar them first:
Code:
jar cfv yourclasses.jar <list of class files or directory>

before ftping them over. Then you'll just need to reference the jar file in your classpath.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.