Author Topic: RC4 Java Options stack  (Read 1512 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2127
  • Hero Points: 190
  • Text
RC4 Java Options stack
« on: April 06, 2015, 04:08:24 pm »

I was having problems getting Slick to work correctly with Java and JDK source / symbols.
I started by uninstalling all Java stuff from my machine, and ensuring that ProgramFiles\Java was deleted.


Then I installed the JRE and JDK
   jre-8u40-windows-x64.exe
   jdk-8u40-windows-x64.exe


Then I started Slick RC2.
Slick complained about the JDK not being available.
Slick was using the JDK from:
   C:\Program Files\Java\jdk1.8.0_31
but the new JDK was installed to
   C:\Program Files\Java\jdk1.8.0_40\


In JavaOptions I updated "JDK Installation directory".
Then when I tried to update "Compiler Name" by clicking the "..."
I got this SlickStack




stack[2015-04-06T09:02:00.670000Z] Slick-C STACK TRACE ******************************
stack[2015-04-06T09:02:00.675000Z] Created on 4/6/2015 at 9:2:0 (669 ms)
stack[2015-04-06T09:02:00.679000Z] SlickEdit Pro Version 19.0.2.4 Copyright 1988-2014 SlickEdit Inc.
stack[2015-04-06T09:02:00.683000Z] Edit module and type "st -f <offset>" to get the
stack[2015-04-06T09:02:00.687000Z] run-time error position
stack[2015-04-06T09:02:00.692000Z]
stack[2015-04-06T09:02:00.697000Z] error code=-2073
stack[2015-04-06T09:02:00.701000Z] This property or method is not allowed on this object
stack[2015-04-06T09:02:00.705000Z]
stack[2015-04-06T09:02:00.710000Z]project.ex 16944 _project_form.ctlcommand_options.lbutton_up(_java_options_form)   p_window_id: 237   p_object: OI_COMMAND_BUTTON   p_name: ctlcommand_options
stack[2015-04-06T09:02:00.715000Z]javaopts.ex 36085 javaoptions()   p_window_id: 332   p_object: OI_IMAGE   p_name: ctlFindapp
stack[2015-04-06T09:02:00.719000Z]compile.ex 24486 set_java_environment(1,3,Debug,0)   p_window_id: 15   p_object: OI_EDITOR   p_name:
stack[2015-04-06T09:02:00.723000Z]javaopts.ex 33396 _java_options_form.ctlFindapp.lbutton_up()   p_window_id: 332   p_object: OI_IMAGE   p_name: ctlFindapp
stack[2015-04-06T09:02:00.728000Z]picture.ex 2413 _ul2_picture.lbutton_down(0)   p_window_id: 332   p_object: OI_IMAGE   p_name: ctlFindapp
stack[2015-04-06T09:02:00.732000Z]picture.ex 2867 _ul2_imageb.lbutton_down(0)   p_window_id: 332   p_object: OI_IMAGE   p_name: ctlFindapp
stack[2015-04-06T09:02:00.736000Z]project.ex 16944 _project_form.ctlcommand_options.lbutton_up(_java_options_form)   p_window_id: 237   p_object: OI_COMMAND_BUTTON   p_name: ctlcommand_options
stack[2015-04-06T09:02:00.740000Z]javaopts.ex 36085 javaoptions()   p_window_id: 15   p_object: OI_EDITOR   p_name:
stack[2015-04-06T09:02:00.743000Z]compile.ex 6630 _project_command(java options,C:\Users\joe\Documents\JavaProjects\WinDU\DirScanWorker.java,null,0,1,0,0,go)   p_window_id: 15   p_object: OI_EDITOR   p_name:
stack[2015-04-06T09:02:00.748000Z]compile.ex 1868 _project_command2(java options,0,1,0,0,go,C:\Users\joe\Documents\JavaProjects\WinDU\DirScanWorker.java)   p_window_id: 15   p_object: OI_EDITOR   p_name:
stack[2015-04-06T09:02:00.752000Z]compile.ex 1716 project_usertool(java options,0,1,0,)   p_window_id: 15   p_object: OI_EDITOR   p_name:


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1433
  • Hero Points: 130
Re: RC4 Java Options stack
« Reply #1 on: April 07, 2015, 03:35:55 pm »
Taking a look.  I haven't reproduced the crash yet, but I do see why it was picking the wrong JDK when there was no JDK path set.  (The short version is it's supposed to pick the latest version it finds in the registry, but there's a bug that makes it pick the older entry for the un-installed JDK).