Menu

#371 Error al ejecutar DrJava

v1.0 (example)
open
nobody
None
5
2023-01-23
2023-01-20
luis muñiz
No

Hola:

acabo de descargar/descomprimir el archivo: drjava-stable-20120818-r5686-osx.tar.gz, lo ejecuto y ya aparece: DrJava.app, cuando lo ejecuto aparece el siguiente mensaje: “DrJava.app” está dañado y no puede abrirse. Deberías moverlo al basurero.

Puede usted indicarme como resolver este inconveniente.

Gracias

Luis Muñiz

Macbook pro 2017
MacOS 13.1 (22C65)
java version "11.0.16.1" 2022-08-18 LTS

Related

Support Requests: #371

Discussion

  • luis muñiz

    luis muñiz - 2023-01-20

    Translation to english

    Hello:

    I just downloaded/unzipped the file: drjava-stable-20120818-r5686-osx.tar.gz, I run it and it already appears: DrJava.app, when I run it I get the following message: “DrJava.app” is damaged and cannot open. You should move it to the garbage can.

    Can you tell me how to solve this problem.

    Thanks

     
    • Robert Cartwright

      DrJava is an open source app that is not licensed with Apple so Apple now
      generates the bogus message that you reported. I have not personally used
      Macs in well over a decade but I have seen many reports of the same problem
      by other Mac users. The universal solution is to download the jar
      distribution and execute it from the command line (in a terminal) using the
      command

      java -jar drjava.jar

      You must run a version of Java consonant with the date of the release that
      you are using. I recommend downloading and running the most recent version
      of drjava at

      www.cs.rice.edu/~javaplt/drjavarice, which is widely available. It only
      runs with Java 8 which is the most popular "legacy" version of Java. I
      have a slight preference for the Oracle Java 8 JDK but the license is
      rather restrictive. The Java 8 OpenJDK at
      https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html
      is a good alternative with a liberal open source license.

      -- Corky

      On Fri, Jan 20, 2023 at 4:54 PM "luis muñiz" donpitros1947@users.sourceforge.net wrote:

      Translation to english

      Hello:

      I just downloaded/unzipped the file:
      drjava-stable-20120818-r5686-osx.tar.gz, I run it and it already appears:
      DrJava.app, when I run it I get the following message: “DrJava.app” is
      damaged and cannot open. You should move it to the garbage can.

      Can you tell me how to solve this problem.

      Thanks

      Status: open
      Group: v1.0 (example)
      Created: Fri Jan 20, 2023 12:01 AM UTC by luis muñiz
      Last Updated: Fri Jan 20, 2023 12:01 AM UTC
      Owner: nobody

      Hola:

      acabo de descargar/descomprimir el archivo:
      drjava-stable-20120818-r5686-osx.tar.gz, lo ejecuto y ya aparece:
      DrJava.app, cuando lo ejecuto aparece el siguiente mensaje: “DrJava.app”
      está dañado y no puede abrirse. Deberías moverlo al basurero
      .

      Puede usted indicarme como resolver este inconveniente.

      Gracias

      Luis Muñiz

      Macbook pro 2017
      MacOS 13.1 (22C65)
      java version "11.0.16.1" 2022-08-18 LTS


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/drjava/support-requests/371/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #371

  • luis muñiz

    luis muñiz - 2023-01-23

    Hola:

    This is the response it provides: java -jar drjava.jar, when this command is executed.

    Luiss-MacBook-Pro:DRJAVA laam$ java -jar drjava.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener
    at edu.rice.cs.drjava.platform.PlatformFactory.getPlatformSupport(PlatformFactory.java:50)
    at edu.rice.cs.drjava.platform.PlatformFactory.<clinit>(PlatformFactory.java:40)
    at edu.rice.cs.drjava.config.OptionConstants$DefaultFont.getDefaultMainFont(OptionConstants.java:231)
    at edu.rice.cs.drjava.config.OptionConstants.<clinit>(OptionConstants.java:226)
    at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
    at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1044)
    at java.base/jdk.internal.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:186)
    at java.base/java.lang.reflect.Field.acquireFieldAccessor(Field.java:1105)
    at java.base/java.lang.reflect.Field.getFieldAccessor(Field.java:1086)
    at java.base/java.lang.reflect.Field.get(Field.java:418)
    at edu.rice.cs.drjava.config.OptionMapLoader.<clinit>(OptionMapLoader.java:51)
    at edu.rice.cs.drjava.config.SavableConfiguration.loadConfiguration(SavableConfiguration.java:50)
    at edu.rice.cs.drjava.config.FileConfiguration.loadConfiguration(FileConfiguration.java:57)
    at edu.rice.cs.drjava.DrJava._initConfig(DrJava.java:515)
    at edu.rice.cs.drjava.DrJava.handleCommandLineArgs(DrJava.java:444)
    at edu.rice.cs.drjava.DrJava.main(DrJava.java:234)
    Caused by: java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 17 more</clinit></clinit></clinit>

    after executing: java -version
    Also ran the following: amazon-corretto-8.362.08.1-macosx-x64.pkg, and it installed successfully.
    Luiss-MacBook-Pro:DRJAVA laam$ java -version
    java version "11.0.16.1" 2022-08-18 LTS
    Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
    Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

    But I still don't have DrJava
    
    Thanks 
    Luis
    
     

Log in to post a comment.