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

Eraserhead

macrumors G4
Original poster
Nov 3, 2005
10,434
12,250
UK
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...
 

Eraserhead

macrumors G4
Original poster
Nov 3, 2005
10,434
12,250
UK
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...
 

plinden

macrumors 601
Apr 8, 2004
4,029
142
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.