jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1
  • MAVEN-1629

Ugly error message when JDK 1.3 is set for JAVA_HOME

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.1-beta-1
  • Fix Version/s: None
  • Component/s: cli
  • Labels:
    None
  • Environment:
    JAVA_HOME set to a 1.3 JDK

Description

Is there some nicer message that can be produced than this?

C:\source\wsad\workspace\Deployment>maven XXXX
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/App (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.werken.forehead.Forehead.setupEntry(Forehead.java:298)
at com.werken.forehead.Forehead.config(Forehead.java:256)
at com.werken.forehead.Forehead.config(Forehead.java:131)
at com.werken.forehead.Forehead.main(Forehead.java:579)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 19/Jun/05 7:50 AM

maybe a modification to forehead (and for m2, classworlds) to do this check and ensure it is targetted to 1.3?

Show
Brett Porter added a comment - 19/Jun/05 7:50 AM maybe a modification to forehead (and for m2, classworlds) to do this check and ensure it is targetted to 1.3?
Hide
Permalink
dion gillard added a comment - 19/Jun/05 6:13 PM

Either that or check java -version in the shell scripts/batch file, as long as the end-user has a better experience.

Show
dion gillard added a comment - 19/Jun/05 6:13 PM Either that or check java -version in the shell scripts/batch file, as long as the end-user has a better experience.
Hide
Permalink
Brett Porter added a comment - 19/Jun/05 6:30 PM

while I considered the shell/batch solution, it would slow general startup and be a royal pain to implement in a batch file.

Show
Brett Porter added a comment - 19/Jun/05 6:30 PM while I considered the shell/batch solution, it would slow general startup and be a royal pain to implement in a batch file.
Hide
Permalink
Lukas Theussl added a comment - 20/Jul/06 1:27 PM

M11 requires jdk 1.4.

Show
Lukas Theussl added a comment - 20/Jul/06 1:27 PM M11 requires jdk 1.4.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    dion gillard
Vote (0)
Watch (0)

Dates

  • Created:
    19/Jun/05 3:26 AM
    Updated:
    20/Jul/06 1:27 PM
    Resolved:
    20/Jul/06 1:27 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.