You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "dion gillard (JIRA)" <ji...@codehaus.org> on 2005/06/19 10:27:52 UTC

[jira] Created: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Ugly error message when JDK 1.3 is set for JAVA_HOME
----------------------------------------------------

         Key: MAVEN-1629
         URL: http://jira.codehaus.org/browse/MAVEN-1629
     Project: maven
        Type: Bug
  Components: cli  
    Versions: 1.1-beta-1    
 Environment: JAVA_HOME set to a 1.3 JDK
    Reporter: dion gillard
    Priority: Minor


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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1629?page=comments#action_41642 ] 

Brett Porter commented on MAVEN-1629:
-------------------------------------

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

> Ugly error message when JDK 1.3 is set for JAVA_HOME
> ----------------------------------------------------
>
>          Key: MAVEN-1629
>          URL: http://jira.codehaus.org/browse/MAVEN-1629
>      Project: maven
>         Type: Bug
>   Components: cli
>     Versions: 1.1-beta-1
>  Environment: JAVA_HOME set to a 1.3 JDK
>     Reporter: dion gillard
>     Priority: Minor

>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1629?page=all ]

Brett Porter updated MAVEN-1629:
--------------------------------

    Fix Version:     (was: 1.1-beta-2)
                 1.1-rc1

> Ugly error message when JDK 1.3 is set for JAVA_HOME
> ----------------------------------------------------
>
>          Key: MAVEN-1629
>          URL: http://jira.codehaus.org/browse/MAVEN-1629
>      Project: Maven
>         Type: Bug
>   Components: cli
>     Versions: 1.1-beta-1
>  Environment: JAVA_HOME set to a 1.3 JDK
>     Reporter: dion gillard
>     Priority: Minor
>      Fix For: 1.1-rc1

>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Posted by "dion gillard (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1629?page=comments#action_41663 ] 

dion gillard commented on MAVEN-1629:
-------------------------------------

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

> Ugly error message when JDK 1.3 is set for JAVA_HOME
> ----------------------------------------------------
>
>          Key: MAVEN-1629
>          URL: http://jira.codehaus.org/browse/MAVEN-1629
>      Project: maven
>         Type: Bug
>   Components: cli
>     Versions: 1.1-beta-1
>  Environment: JAVA_HOME set to a 1.3 JDK
>     Reporter: dion gillard
>     Priority: Minor

>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MAVEN-1629?page=comments#action_41664 ] 

Brett Porter commented on MAVEN-1629:
-------------------------------------

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

> Ugly error message when JDK 1.3 is set for JAVA_HOME
> ----------------------------------------------------
>
>          Key: MAVEN-1629
>          URL: http://jira.codehaus.org/browse/MAVEN-1629
>      Project: maven
>         Type: Bug
>   Components: cli
>     Versions: 1.1-beta-1
>  Environment: JAVA_HOME set to a 1.3 JDK
>     Reporter: dion gillard
>     Priority: Minor

>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MAVEN-1629) Ugly error message when JDK 1.3 is set for JAVA_HOME

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1629?page=all ]

Brett Porter updated MAVEN-1629:
--------------------------------

    Fix Version: 1.1-beta-2

> Ugly error message when JDK 1.3 is set for JAVA_HOME
> ----------------------------------------------------
>
>          Key: MAVEN-1629
>          URL: http://jira.codehaus.org/browse/MAVEN-1629
>      Project: maven
>         Type: Bug
>   Components: cli
>     Versions: 1.1-beta-1
>  Environment: JAVA_HOME set to a 1.3 JDK
>     Reporter: dion gillard
>     Priority: Minor
>      Fix For: 1.1-beta-2

>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org