Results 1 to 8 of 8
- 12-30-2011, 10:35 AM #1
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
help interpreting error/ warning messages (installation problem??)
I am using a software program that is built on top of Java and uses Java to run code. I am having a bit of a problem compiling a piece of code. When I try to compile I get a long series of identical warnings: "debugln warning: unknown attribute type in class file: StackMapTable", and after that the error "error writing to *name*.java"
I know the code is correct because it works on a different PC so I was wondering whether there might be an issue with the installation or with some setting... Could anyone help out?
- 12-30-2011, 10:43 AM #2
Senior Member
- Join Date
- Oct 2011
- Posts
- 106
- Rep Power
- 0
Re: help interpreting error/ warning messages (installation problem??)
it sounds like you are tying to compile to a different version of java than that which is installed on your computer.Which IDE are you using and what SDK version?
- 12-30-2011, 01:27 PM #3
Re: help interpreting error/ warning messages (installation problem??)
Those error messages don't sound like they came from the javac compiler program. For example the javac program does not write a .java file: "error writing to *name*.java"
- 12-30-2011, 10:33 PM #4
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
Re: help interpreting error/ warning messages (installation problem??)
Thanks. I am using jdk1.7.0 and jre7. I have both jre6 and jre7 installed on my pc, do you think that could be part of the problem?
- 12-30-2011, 10:34 PM #5
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
Re: help interpreting error/ warning messages (installation problem??)
well the error messages are from the program I am using but I think they have something to do with the Java component, because everything else seems to be working..
- 12-30-2011, 10:36 PM #6
Re: help interpreting error/ warning messages (installation problem??)
Can you look at the program and see why it is outputting those error messages?the error messages are from the program I am using
Make sure you have a call to the printStackTrace() method in all catch blocks.
- 01-01-2012, 01:55 PM #7
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
Re: help interpreting error/ warning messages (installation problem??)
Thanks for your replies.
After re-installing Java it is working again now (so no more error message), but still gives all the warnings.
-> I'm going through the program now, I just don't understand why it worked (without warnings) on a different PC...Can you look at the program and see why it is outputting those error messages?
Make sure you have a call to the printStackTrace() method in all catch blocks.
- 01-03-2012, 02:03 AM #8
Re: help interpreting error/ warning messages (installation problem??)
Could be different JRE version. If you use packages from java 1.4.2 on a java 1.4.2 machine, no warnings. Now, move to a java 1.7 machine where those packages are deprecated, and you'll get deprecation warnings and the like. It'll still work, just with warnings.I'm going through the program now, I just don't understand why it worked (without warnings) on a different PC...
Similar Threads
-
Handling Error Messages?
By DoubleDee in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 12-29-2011, 12:19 PM -
Help, please. I don't understand these error messages.
By DarkExperience in forum New To JavaReplies: 32Last Post: 12-05-2011, 07:58 PM -
Struts2.0 Error messages problem
By Sayed in forum Advanced JavaReplies: 0Last Post: 12-03-2008, 11:38 AM -
Loading resources generates warning messages
By Namita Patil in forum New To JavaReplies: 6Last Post: 07-03-2008, 02:04 PM -
Jsf Error Messages - Retain
By vaswin in forum JavaServer Faces (JSF)Replies: 0Last Post: 08-05-2007, 08:22 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks