Skip to main content

How to uninstall on OS X?

1 reply [Last post]
frak
Offline
Joined: 2013-03-27
Points: 0

Hi,

A twitter account (@javafx4you) recommended that I install Java 8 to fix how poorly Java renders on a Retina display. However, I installed the JDK and now I cannot build my project, and I get the following error in NetBeans:

ant -f /Users/mikey/NetBeansProjects/Test jfxsa-run
init:
Deleting: /Users/mikey/NetBeansProjects/Test/build/built-jar.properties
deps-jar:
Updating property file: /Users/mikey/NetBeansProjects/Test/build/built-jar.properties
compile:
/Users/mikey/NetBeansProjects/Test/nbproject/jfx-impl.xml:1037: The following error occurred while executing this line:
/Users/mikey/NetBeansProjects/Test/nbproject/jfx-impl.xml:1057:
java.lang.VerifyError: Code generation bug in "runScript": likely stack misaligned: java.lang.ArrayIndexOutOfBoundsException: 0
at jdk.nashorn.internal.codegen.CodeGenerator.leave(CodeGenerator.java:1003)
at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:339)
at jdk.nashorn.internal.codegen.CompilationPhase$7.transform(CompilationPhase.java:239)
at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:372)
at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:263)
at jdk.nashorn.internal.runtime.Context.compile(Context.java:758)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:720)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:358)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:463)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:451)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:379)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:134)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:487)
at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:487)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:487)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:487)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at jdk.internal.org.objectweb.asm.Frame.merge(Frame.java:1408)
at jdk.internal.org.objectweb.asm.Frame.merge(Frame.java:1364)
at jdk.internal.org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1382)
at jdk.nashorn.internal.codegen.MethodEmitter.end(MethodEmitter.java:198)
at jdk.nashorn.internal.codegen.CodeGenerator.leave(CodeGenerator.java:1000)
... 50 more
BUILD FAILED (total time: 2 seconds)

I would just like to uninstall Java 8 so that I can get a working build again but there seems to be no documented way of doing this - can anyone here advise me on how to do this?

Thank you!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
svanimpe
Offline
Joined: 2013-04-13
Points: 0

If you want to uninstall Java 8 on OS X, simply remove the JDK you installed from /Library/Java/JavaVirtualMachines/ and delete the JavaAppletPlugin in /Library/Internet Plug-Ins/

Then reinstall the one you want.