aspose file tools*
The moose likes Java in General and the fly likes how to invoke a non-class file in Jar file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to invoke a non-class file in Jar file?" Watch "how to invoke a non-class file in Jar file?" New topic
Author

how to invoke a non-class file in Jar file?

Ronyn Woods
Greenhorn

Joined: May 16, 2001
Posts: 27
a non-class file in Jar file, how to configuate its path? thanks a lot

Best Regards,
Ronyn
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Are you talking about a properties file? Or a file that you want to read in using IO?
Or perhaps you are talking about dlls? Or maybe you really mean interfaces? Or maybe C++ files?
Can you please explain what you are trying to do a bit more completely.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
You can get resources such as images, configuration files, or other data out of jar files. The trick is to treat them as system resources and read them from your classpath. Please see:
http://java.sun.com/j2se/1.3/docs/guide/resources/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to invoke a non-class file in Jar file?
 
Similar Threads
ClassNotFoundException
jbuilder how to add a jar file in class path
Files inside the Jar
Security of Java Jar file
how to make an exe