DOES JARFIX WORK CODE
all this code is set in a try-catch phrase. I don't remember where): //above was code to get newPath based on the Operating System. I set it like so (this was a method I found somewhere on the internet. Now that I think about it that may be the problem. Only problem is that it IS in the library path.
Here's the stack trace: : no j3dcore-d3d in Īt (Unknown Source)Īt 0(Unknown Source)Īt (Unknown Source)Īt $1.run(NativePipeline.java:231)Īt (Native Method)Īt .loadLibrary(NativePipeline.java:200)Īt .loadLibraries(NativePipeline.java:157)Īt .loadLibraries(MasterControl.java:987)Īt (VirtualUniverse.java:299)Īt 3D.(Canvas3D.java:3881) The weird part is that in my tests where I display the current path and library path, the output is exactly the same whether I run it via command prompt or via double-clicking on it. I'll start troubleshooting my program again.ĮDIT 3: The problem is just what I thought it was: it's not loading libraries correctly when I double click on it. So there must be something wrong with my JAR file. This worked on double-click no matter where I put it in my computer. Press the button and it opens a (useless) JFileChooser. However, moving the necessary outside files there doesn't help anything.ĮDIT 2: I tried making another JAR file, this time with a simple JFrame with a button in it that tells you the current working directory. Here are the contents of the JAR file if it helps: Modeler.jarĬontents of MANIFEST.MF: Manifest-Version: 1.0Ĭlass-Path: bin/j3dcore.jar bin/j3dutils.jar bin/vecmath.jarĬreated-By: 1.6.0_16 (Sun Microsystems Inc.)ĮDIT: So after messing with the file associations to use java.exe instead of javaw.exe (thereby providing a window for print-outs), then modifying the startup mechanism a little to print out the current working directory, I discovered that the jar is running from "C:\Windows\system32" instead of the folder on my desktop I put it in.
DOES JARFIX WORK WINDOWS 7
Any ideas as to why it won't work? I'm running Windows 7 Home Premium. I know from experience that crash reports on start-up are not shown because the console doesn't appear (or it disappears too fast), but when running from the command prompt there are no crash reports.
It runs perfectly fine with no errors from command prompt. However, when I double-click it, nothing happens. I got it working perfectly before putting it into the JAR file, and I got it working perfectly IN the JAR file while running from command prompt (typing "java -jar Modeler.jar" while in the directory of the jar file). So I've been writing a simple 3D GUI application that I intended for users to use simply by double-clicking on the JAR file.