home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

.JAR file Help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2676
Discussions: 200,970, Posts: 2,379,726, Members: 246,335
Old June 24th, 2009, 07:59 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 10
.JAR file Help

Hey fella's, recently i have been creating .jar files from my java applications so i could create an executable file. After i learnt how to make one from sun microsystems i created some of my java applications as .jar files and they have worked perfectly.

Now after applying the same method as before my .jar files no longer work for some reason. I tried going back to previously made jar files and tried to remake them in the same manner as i did when i originally created the files but the same error occurred (Unable to access jarfile <filename>)

I added an attachment to demonstrate the files i have, whats in my manifest file and the code used to create the jar file.

Any help would be appreciated =).

Thanks
Attached Thumbnails
jar-file-help-jar_help.jpg  
tomislavpuric is offline   Reply With Quote
Old June 25th, 2009, 09:18 AM     #2 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 10
Ok fellas, after several rages and a hour or two googling and trying to find out how 2 fix this problem i found a solution.

1. Open up the .jar file as a .zip file
2. Open up the MANIFEST folder inside the .zip
3. Edit the MANIFEST file by appending Main-Class: <filename> (cause i found out that for somne reason it didnt show there.. was weird)
4. Then save the file
5. Run the .jar file and vwala =)
tomislavpuric is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert .rar file back to a viewable movie file goturk1 Applications and Operating Systems 16 June 21st, 2008 04:06 AM
Double lidded jar. no1_vern IMO Community 5 May 15th, 2008 04:38 PM
File upload script in PHP - File check fails. PyroSama Webmastering and Programming 5 January 10th, 2006 07:17 AM
Ghost-in-a-jar goes for 50 grand BFlurie IMO Community 19 June 7th, 2003 08:04 AM
Creating a .jar file..... Tekk Webmastering and Programming 7 January 25th, 2003 12:15 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3040)
Delete an OS (15)
Breaking: San Diego ACORN Document .. (8)
Forty-six years ago today (12)
Nvidia GTX 260 problem (6)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (17)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
Recent Discussions
Delete an OS (15)
Steam ID's, Gamertags etc... (4)
Nvidia GTX 260 problem (6)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)


All times are GMT -4. The time now is 06:56 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28