Hi,
I am executing an exe through my java program.
the path is hardcoded in java.
I have packaged my the exe in the jar.
But am stuck as i have the path name hardcoded in the java file.
so am not able to execute my jar as a stand alone program.
Any hints for packaging such jar i.e having an exe inside and able to
run it as a stand al...
I have a method that gets called at the start of my program, and it works fine when I run the jar, but when I run the jnlp file it crashes.
public void newImg(String i)
{
try
{
File file = new File(i);
img = ImageIO.read(file);
}
}
img is a bufferedImage, by the way.
...
I ask because I have an unsigned jar that runs and a signed version that doesn't. Looking at the manifests, I see no main class thing for the signed one.
Do I have to run a signed jar from web start?
...
I'm using NetBeans 6.5 and for some reason it won't produce executable jar "out of the box".
I set my project to be the main project, defined main class in the project properties "run" menu and it works flawlessly when I press F6 to run it.
I looked at the manifest file and it indeed didn't define the main class there, and also omitted...
Hello,
When you start to use a third party library in Java, you add their jars to your project. Do you also add the jars to the repository or do you just keep a local installation. And if the latter, how do you sync between team members to be able to work?
Thanks.
...
I have this code on an applet. The applet works ok, but I get a lot of unnecessary duplicate download. In particular, I have noticed that each "getResource" triggers a download of the .JAR file.
static {
ac = new ImageIcon(MyClass.class.getResource("images/ac.png")).getImage();
dc = new ImageIcon(MyClass.class.getResource("image...
I have a webapp which contains a manifest file, in which I write the current version of my application during an ant build task. The manifest file is created correctly, but when I try to read it in during runtime, I get some strange side-effects. My code for reading in the manifest is something like this:
InputStream manifestStrea...
I am trying to track down the Weblogic 10.3 JAR that contains weblogic.rmi.RemoteException in order to solve a build path issue.
Thanks in advance.
...
Question 1: How should I structure my project so the sound and images files can be loaded most easily? Right now, I have the folder:
C:\java\pacman
with the sub-directory
C:\java\pacman\src
containing all the code, and
C:\java\pacman\assets
containing the images and .wav files. Is this the best structure or should I put the asse...
I'm trying to turn my JoGL project into a jar. Can someone tell me what I'm doing wrong?
http://www.megaupload.com/?d=MA3LF50J
EDIT from schnaader: Stacktrace from my PC:
EDIT FROM WILLIAM: It runs on my PC just fine as a normal project inside JCreator, so I know it's not the code. I have JoGL in the /lib/ext/ folder of my jre too.
E...
I have to build two eclipse-plugin projects into two separate jars with each one dependent on the other for compiling. Eclipse IDE complains about "cyclical dependency...".
How do I build these plugin jars? I guess running these plugins by just putting them in the eclipse/plugin folder should be smooth.
...
Does anyone know of a free decompiler that can decompile an entire Jar file instead of a single class? I have a problem with sub classes like name$1.class name$2.class name.class
...
I am reorganizing our java code base and wanted to compare our resultant jar files.
When I build in the old source tree, I get a jar file size of 3360081.
In the new source tree it is 3360128.
I do a "jar tvf jarfile" and then strip the dates out of the file.
The listing looks like this:
0 Mon Mar 16 10:41:16 EDT 2009 META-INF/...
I have a Java assignment that uses components to build program. The teacher gave us a JAR we are to use to build the calculator using Eclipse. The JAR has 2 classes. We must import the JAR and use its classes.
I import the JAR:
import SWEB401_HW1.NumericOperation;
but when I try to create an object for the class, it gives me an err...
the list of jars just takes too much place.
Can I collapse it or hide it?
...
Hello,
If I have a JAR (Android APK), and I signed it like this:
jarsigner -keystore my.keystore someApk.apk myAlias
How do I un-sign it? Because if I open it as a zip file and try to extract the AndroidManifest.xml, they are all messed up. Thanks,
Isaac Waller
...
I have a java batch file consisting of 4 execution steps written for analyzing any Java application. In one of the steps, I'm adding few libs in classpath that are needed for my core application to run. If any of Java applications that I'm analyzing need specific jars, then how do I add them in the classpath mentioned in the batch file. ...
Hi
I have a proprietary application and its war file is available to us. I need to basically add a jsp page to the current application.
I was thinking i will write the independent jsp, java files build a war and add it to the proprietary war file.
Or
i will write the jsp, java files and add it to the same war.
Can i make a new war...
I have a .war file of an application. It works, but I need to update some
inner jars (only minor version changes)
While I can operate on .war archives using the
midnight commander, the files can't be executed anymore:
java.lang.SecurityException: SHA1 digest error.
I tried repacking it using the jar command, but I get it wrong:
The arc...
I have developed a Java swing application, then I have deployed it through a .jar package.
I run my application on my PC double-clicking over the .jar file and everything goes fine, everything goes fine from command line (dos prompt) too.
Here my problem.
I have tried to run my app on another PC:
same OS (Windows XP)
same JRE (1.6...