Results 1 to 4 of 4
- 01-21-2010, 01:29 AM #1
Member
- Join Date
- Dec 2009
- Posts
- 20
- Rep Power
- 0
creating executable .jar for linux, mac, and windows
I made an executable .jar in Windows and if I put these files in the same folder it works fine.
Java Code:vrem.jar images/background.png config.properties
I added this to manifest
Java Code:Class-Path:config.properties
Is there a way to make an executable .jar that is windows, mac and pc friendly? I would like to leave config.properties and Image directory seperate from .jar
background image:
Java Code:background = new ImageIcon("images/home_background.png");
Java Code:configFile.load(new FileInputStream("config.properties"));
-
Why not just put your resources in the Jar itself?
- 01-21-2010, 01:44 AM #3
Member
- Join Date
- Dec 2009
- Posts
- 20
- Rep Power
- 0
I thought it would be easier for others to edit config.properties and change out images when I distribute it.
-
Similar Threads
-
Need help for creating executable xml
By patilsubh in forum XMLReplies: 3Last Post: 10-01-2009, 10:54 AM -
Creating a java program that acts like a normal windows executable?
By rolls in forum New To JavaReplies: 3Last Post: 08-10-2009, 06:34 AM -
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM -
Character encoding in Java (Linux to Windows)
By BeholdMyGlory in forum New To JavaReplies: 2Last Post: 01-16-2009, 06:24 PM -
Access Linux shared folder from Windows OS
By nitinpjairaj in forum NetworkingReplies: 3Last Post: 08-26-2008, 06:14 PM
Bookmarks