Re: JAR file which needs to call another jar file....



gooderthanyou@xxxxxxxxx wrote:
Ok... I'm using eclipse and I create a jar (with applet and all).  It
runs fine in eclipse but out on its own, it doesn't.  I simply am using
this html to open the jar..:

<HTML>
  <HEAD>
    <TITLE>Pinball</TITLE>
  </HEAD>
  <BODY>

<p>
  <APPLET code = "GUI.class" name="Pinball"
    width = "626" height = "501"
    archive = "PinballGame.jar" id="Pinball">
    Java is not installed get it now!
  </APPLET>
</p>
<p>Pinball created by Natalie, Curtis, Vincent, and Kevin</p>
<P><A HREF
="http://www.java.com/en/download/windows_automatic.jsp";>Download JAVA
Virtual Machine Here</P>
  </BODY>
</HTML>

The only problem is I have physics.jar, it is included in the jar but
for some reason it won't access it, i've looked for the past 3 hours
trying to figure it out,


Thanks


A jar cannot access a jar within itself. I'm not sure how it works in applets, but in applications the second jar (physics.jar) needs to be outside the first (PinballGame.jar), but on it's classpath.



James .



Relevant Pages

  • Re: php java bridge - procedure could not be found in Unknown on line 0 error
    ... but still does not seem to load the JavaBridge.jar ... I just see the java paths information. ... the second jar is the class i want to use. ... What is preventing javabridge.jar from loading? ...
    (comp.lang.php)
  • Re: A constructive debate: Eclipse or NetBeans?
    ... However, I've tried NetBeans recently. ... better support for creating GUIs than Eclipse ... "make" as a build system and primarily programming in OCaml. ... Sun's Java implementation. ...
    (comp.lang.java.softwaretools)
  • Re: Debugger
    ... To attach to a running process using VC (this is Visual Studio 2003 specific, ... go to your Java code. ... At this stage /don't/ use Eclipse to do this, ... Now you may see that your breakpoint has changed to show a '?'. ...
    (comp.lang.java.programmer)
  • Java/eclipse in PPC
    ... I want to install Java and Eclipse to development. ... Java is "easy" because can be downloaded to www.ibm.com the version ... JVM Requesting Java core file ...
    (comp.os.linux.powerpc)
  • Re: Debugger
    ... To attach to a running process using VC (this is Visual Studio 2003 specific, ... go to your Java code. ... At this stage /don't/ use Eclipse to do this, ... Now you may see that your breakpoint has changed to show a '?'. ...
    (comp.lang.java.programmer)