Results 1 to 8 of 8
  1. #1
    george27 is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default 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?

  2. #2
    mwr1976 is offline Senior Member
    Join Date
    Oct 2011
    Posts
    106
    Rep Power
    0

    Default 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?

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default 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"

  4. #4
    george27 is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default 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?

  5. #5
    george27 is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default 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..

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: help interpreting error/ warning messages (installation problem??)

    the error messages are from the program I am using
    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.

  7. #7
    george27 is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default 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.
    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.
    -> I'm going through the program now, I just don't understand why it worked (without warnings) on a different PC...

  8. #8
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: help interpreting error/ warning messages (installation problem??)

    I'm going through the program now, I just don't understand why it worked (without warnings) on a different PC...
    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.

Similar Threads

  1. Handling Error Messages?
    By DoubleDee in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 12-29-2011, 12:19 PM
  2. Help, please. I don't understand these error messages.
    By DarkExperience in forum New To Java
    Replies: 32
    Last Post: 12-05-2011, 07:58 PM
  3. Struts2.0 Error messages problem
    By Sayed in forum Advanced Java
    Replies: 0
    Last Post: 12-03-2008, 11:38 AM
  4. Loading resources generates warning messages
    By Namita Patil in forum New To Java
    Replies: 6
    Last Post: 07-03-2008, 02:04 PM
  5. Jsf Error Messages - Retain
    By vaswin in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 08-05-2007, 08:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •