Results 1 to 11 of 11
Thread: Java running error
- 01-22-2011, 01:30 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Java running error
Hi all. I have an issue with a Java program. I downloaded a program called Shimeji-ee.exe. It runs a small animation on your screen. I changed all the animation images to suit my needs and it all ran fine.
I run a website and uploaded the whole folder via ftp, linked my button to shimeji-ee.exe. But when a user clicks the button it asks run/save. If you choose run I get the following error:
Java Virtual Reader
Unable to access jarfile
I tried linking to the jar file instead (shimeji-ee.jar) and it gave another error messgae:
Could not find the main class
I am lost, as I have little understanding of Java, I hope someone can tell me where I am going wrong
Thanks
- 01-22-2011, 05:23 PM #2
Hi,
I'm very new to Java also so I might be totally wrong
I think to run Java via a browser it needs to be an applet not a jar(exe)
- 01-22-2011, 05:46 PM #3
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Thanks code_newbie. I don't suppose anyone knows how I accomplish this? Bear in mind I have not worked in Java before:confused:
-
- 01-22-2011, 07:30 PM #5
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Does anyone know how I can get either the exe or jar file to execute on my web site?
- 01-22-2011, 09:51 PM #6
-
- 01-23-2011, 12:33 AM #8
- 01-23-2011, 12:52 AM #9
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
@OP: As noted .jar archives are the most common way of packaging java applets. However it is quite possible that the Shimeji-ee.exe executable was doing something important before invoking the java classes in the .jar archive. (Like setting the main class, but also doing other things).
Moreover it should be noted that classes in a .jar archive designed for use as an application may very well not work as an applet. Two common areas where they differ is in how they access local resources (like images) and the sort of security rules that they follow (applets are, by design, more restricted).
Unless you are a Java programmer (for whom this forum is intended) you may find it impossible to shift this program onto the web and have it run. In that case what you should do is talk to whoever wrote the program for advice on how to achieve what you want.
@code_newbie: Have a read of Dealing with rudeness in the smart questions faq. At least for me, if I'm wrong I want to know about it directly, matter of factly, even bluntly. I don't want tact if that could leave even the smallest doubt in the mind of the person I misled. That's important to me because I rely on the vigilence of others as a quality control check: I'd tend to shut up if I thought others tactfulness would lead me to mislead someone asking a question.Last edited by pbrockway2; 01-23-2011 at 12:54 AM.
- 01-23-2011, 01:08 AM #10
Appriciate your feedback
Originally Posted by pbrockway2;172129@code_newbie: Have a read of [URL="http://www.catb.org/~esr/faqs/smart-questions.html#keepcool"
BUT being rude is just being rude
I would have understood if I had come off as "hey I know what I'm talking about and blah blah"
Which is exactly what I didnt do...I clearly stated I was new to Java
- 01-23-2011, 06:19 AM #11
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Similar Threads
-
Odd error when running app
By pahiker in forum New To JavaReplies: 5Last Post: 06-23-2010, 03:10 PM -
Problem in running Java swing wizard in jre 1.6 while it is running in jre 1.4
By Sanjay Dwivedi in forum AWT / SwingReplies: 0Last Post: 08-26-2009, 01:03 PM -
Error during running
By ak88 in forum New To JavaReplies: 7Last Post: 07-28-2009, 04:39 AM -
Error running java program using URL
By gio123bg in forum New To JavaReplies: 6Last Post: 06-30-2009, 06:26 PM -
error running java program
By bdasilva in forum New To JavaReplies: 1Last Post: 06-29-2009, 01:46 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks