Ok, I was looking into batch scripts and I found out I can do this:
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xms64M -Xmx4G -jar "C:\path\to\myApp.jar" %*
I just open my file with the .bat...
Type: Posts; User: hafunui
Ok, I was looking into batch scripts and I found out I can do this:
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xms64M -Xmx4G -jar "C:\path\to\myApp.jar" %*
I just open my file with the .bat...
Sorry to bump, but I still haven't figured this out yet.
To reiterate, what I'm trying to do is to open a file by dragging it over MyJavaApp.jar, or in windows (MyFile > open with >...
I've managed to associate the .jar with a file, but the program does not launch. Here's some code.
package simpleImageViewer;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import...
Hi, beginner java programmer here :)
How do I open a file with a java program? Search results return people trying to open a file with streams, or native applications and command lines and such;...