Running MPLAB X v3.10 with JRE8

Author
Jose Diaz
Administrator
  • Total Posts : 1672
  • Reward points : 0
  • Joined: 2010/06/23 11:10:56
  • Location: 0
  • Status: offline
2015/09/09 09:37:21 (permalink)
5 (2)

Running MPLAB X v3.10 with JRE8

MPLAB X v3.10 as installed by default, uses JRE 7. For v3.15, MPLAB X will still install both JREs but will default to JRE 8 (except for Windows XP, please read next post in this thread if you use Windows XP).
If you wish to help us test v3.10 using JRE 8,  please read on.
For v3.10, both JREs are installed under $inst_dir_mplabx/sys/java. The installer sets JRE 7 as a default. But changing two lines in a file called mplab_ide.conf will allow you to run using JRE 8.
The location of the mplab_ide.conf is operating system dependent. In all systems you simply need to change the location where the JRE is stored via a variable called jdkhome in file mplab_ide.conf. This file contains lines like this:

 
 
 
jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v3.10\sys\java\jre1.7.0_79\"
#jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v3.10\sys\java\jre1.8.0_45\"


The lines beginning with # are commented out in this file. You can change these lines to:

 
 
 
#jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v3.10\sys\java\jre1.7.0_79\"
jdkhome="C:\Program Files (x86)\Microchip\MPLABX\v3.10\sys\java\jre1.8.0_45\"

 
The location of mplab_ide.conf:
 
In Windows:
For 32 bit systems: C:\Program Files\Microchip\MPLABX\v3.10\mplab_ide\etc
For 64 bit systems: C:\Program Files (x86)\Microchip\MPLABX\v3.10\mplab_ide\etc
Attachments are not available: Download requirements not met
In MacOSX:
/Applications/microchip/mplabx/v3.10/mplab_ide.app/Contents/Resources/mplab_ide/etc
 
In Linux:
/opt/microchip/mplabx/v3.10/mplab_ide/etc
post edited by Jose Diaz - 2015/09/09 14:45:13

Attachment(s)

Attachments are not available: Download requirements not met
#1

18 Replies Related Threads

    Jose Diaz
    Administrator
    • Total Posts : 1672
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/09 15:24:05 (permalink)
    +1 (1)
    JRE 8 does not support Windows XP. This is the migration path for Windows XP users:
    1) MPLAB X v3.10 installs both JRE 7 and JRE 8. JRE 7 is set as default. No impact to Windows XP users.
    2) MPLAB X v3.15 installs both JRE 7 and JRE 8. It will default to JRE 8 except for Windows XP where it will default to JRE 7. No impact to XP users.
    3) MPLAB X version > v3.15 will come with only JRE 8. Windows XP users need to download their own JRE 7 and point to MPLAN X to it.
    #2
    TJ2015
    The New Math
    • Total Posts : 491
    • Reward points : 0
    • Joined: 2015/04/19 11:38:37
    • Location: OSI
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/10 09:01:40 (permalink)
    0
    Seems to work ok so far
     
    The mplab_ide.conf on my windows 7 install did not have any entries for for jdkhome so I just added them both from the post above.
    #3
    Jose Diaz
    Administrator
    • Total Posts : 1672
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/10 09:04:29 (permalink)
    0
    TJ2015, thanks. The mplab_ide.conf must have those entries. Otherwise MPLAB X would pick up whatever JRE is in the system as a last resort. Thanks for trying JRE 8.
    Jose
     
    #4
    newfound
    Super Member
    • Total Posts : 1793
    • Reward points : 0
    • Joined: 2003/11/07 12:35:49
    • Status: online
    Re: Running MPLAB X v3.10 with JRE8 2015/09/10 09:38:17 (permalink)
    +1 (1)
    Is it possible for MPLABX to "forget" where its java version is? I was running MPLABX 3.10 on XP OK until java 8 got installed. MPLABX became totally unusable so I switched to my laptop with Win 7 64-bit. In a way it was a great favor once I ported everything needed. Now to be fair I really cannot say that it was the java update that caused the issue. I simply did not have the heads-up here in time to look into it further.  
     
    All went well with the laptop until, again it appears, java 8 got installed on that machine and again MPLABX failed in the same way as with XP (couldn't find and parse structure and union members.) The way I got it to go again was to delete java 8 and then deleted MPLABX and did a clean install. Deleting java 8 alone was not enough.  
     
    Really don't know what is happening but if I had of seen this thread before all this happened I could have checked the conf file. As it stands the current conf file reads as posted above so all is good for now. 
    #5
    TJ2015
    The New Math
    • Total Posts : 491
    • Reward points : 0
    • Joined: 2015/04/19 11:38:37
    • Location: OSI
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/10 09:57:22 (permalink)
    0
    hmmmm....well, I guess I have been running on Java 8 all this time since it is the only version I have installed on my system.
     
    I checked V3.05 also and it did not have any entries either.
     
    I switched the mplab_ide.conf for V3.10 back to no entries and checked the about and it is using the version that is installed on my system.
    Attachments are not available: Download requirements not met

    Attachment(s)

    Attachments are not available: Download requirements not met
    #6
    Jose Diaz
    Administrator
    • Total Posts : 1672
    • Reward points : 0
    • Joined: 2010/06/23 11:10:56
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/10 10:34:34 (permalink)
    0
    I know we edit the mplab_ide.conf programmatically in the installer. I have never seen it drop the jdkhome though... But this happened to you in two systems... I am not sure. I'll check with the guy who does the installers.
    Jose
    #7
    epicedium
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/06/27 10:49:22
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/30 04:30:46 (permalink)
    +1 (1)
    Sorry for the semi-off-topic post, but I've struggled to find information in other threads-
     
    MPLAB 3.X on OSX is really slow. The editor is very sluggish at scrolling, re-sizing, etc. Much worse experience than on Windows on the same computer.
     
    I just did the above to switch Java to V8, no change...  Is this normal?  
     
    For example if I resize the full MPLAB window (drag the corner), it barely manages 2 draws per second.
    Kris
    #8
    stevereinert
    Senior Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2010/05/12 09:20:48
    • Location: Chandler, AZ
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/09/30 11:22:10 (permalink)
    0
    Hi Kris (epicedium),
     
    Thanks for your question.  Can you tell me a little bit more about your setup?  I'm interested in total system RAM, memory usage before and after you start X, processor speed, and OS version. It sounds like there's either a dual boot situation or virtual machine setup from your post that I'm also curious about. 
     
    To answer your question directly, I develop and run X on a Mac (OS X 10.10.5) without sluggishness.  If we can figure out the difference in our machine setups or MPLAB X configurations, there might be something that can be done to mitigate the performance issue.
    #9
    epicedium
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/06/27 10:49:22
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/01 09:39:26 (permalink)
    +1 (1)
    Sure, MacBook Pro 2015, 2.8GHz Quad-core Intel Core i7, 16GB Ram, OSX El Capitan Final (as of today- problem seems the same).  Native, no virtual machine or bootcamp.
     
    8GB ish RAM free before starting MPLAB. MPLAB using about 800MB after boot (3 simple ish projects, few dozen files each). 10 or 12 tabs open with .c and .h files of just some hundreds of lines each.
     
    And... It's sluggish.  If I had return to make a newline, it takes perhaps 300-500ms to do it.  If I CMD+Click to jump to a function in another .c file, it'll get there in perhaps 600ms.
     
    If I double click the MPLAB titlebar to maximise, it'll manage perhaps 2-3 redraws during the "animation".  (Whereas if I minimise it, it'll genie away perfectly smooth).
     
    Kris
     
    #10
    stevereinert
    Senior Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2010/05/12 09:20:48
    • Location: Chandler, AZ
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/01 17:13:18 (permalink)
    0
    Thanks for the additional information, Kris.  We're looking at getting a similar setup with El Capitan.  Just to clarify, by "Final" you mean the official public release?  Not a developer version?
    #11
    epicedium
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/06/27 10:49:22
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/02 02:29:36 (permalink)
    0
    >> Just to clarify, by "Final" you mean the official public release?  Not a developer version?
     
    Exactly, release day version.
     
    I've tried MPLAB on the built-in 15" retina screen, and also on my 4K displayport monitor. Both are similar and unacceptable IMO...  By which I mean, performance is very significantly worse than any other program I run on the computer, in terms of scrolling, delay after pressing a key, very slow redraw during window resizing, etc.
     
    MPLAB also look pixely, i.e. it's not drawing the full retina res...  That would be fine, if the performance was reasonable.
     
    I'm running the retina scaling mode "one to the left of centre" to try to help performance a bit. I'd prefer to run the centre option (with more desktop space available) but it's even worse.
     
    Kris
    #12
    Kabron
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2006/10/29 01:19:37
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/04 04:10:40 (permalink)
    0
    Win 7 x64, jdk1.8.0_60(64), jdk1.8.0_20(64), jre1.8.0_60(64), MPLABX 3.10
    After loading a project, permanently got java.lang.NullPointerException

    Any ideas&
    #13
    dragondgold
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2011/07/31 16:01:28
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/05 06:43:05 (permalink)
    0
    @epicedium I'm also running a MacBook Pro 2015, 2.7GHz Dual-core Intel Core i5, 8GB Ram and got this problems since I bought my Mac with Yosemite (currently running Capitan Final Release too). This started with MPLAB X 3.X, all version before 3.X works perfectly smooth.
    post edited by dragondgold - 2015/10/05 08:21:59
    #14
    epicedium
    New Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/06/27 10:49:22
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/05 08:38:44 (permalink)
    0
    Is it viable to downgrade?   I think I was on 2.8.x or something on Windows before switching to OSX and it was perfectly smooth.
    #15
    dragondgold
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2011/07/31 16:01:28
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/05 10:16:07 (permalink)
    0
    epicedium
    Is it viable to downgrade?   I think I was on 2.8.x or something on Windows before switching to OSX and it was perfectly smooth.


    I use the latest 2.X version which is v2.35 and it works great, no problems at all with the editor. I hope they fix this issue in MPLAB X v3.15
    #16
    stevereinert
    Senior Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2010/05/12 09:20:48
    • Location: Chandler, AZ
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/07 15:24:32 (permalink)
    0
    Hi Epicedium,
     
    We were able to get El Capitan installed on a Mac Mini for testing.  The machine's specs are not performance specs like your laptop (2 GHz Intel Core 2 Duo, 3 GB 1067 MHz DDR3 Ram, NVIDIA GeForce 9400 256 MB). MPLAB X runs fine there with a couple of projects open, including a large Harmony project.  No 300ms new line or navigation delays.  I suspect it is an issue with the new Metal API and/or Retina display, but I'd like to probe more.  Can you send me a private message through here if you're interested in discussing further?  This will require some back and forth communication that is off topic from the main thread.
    #17
    dragondgold
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2011/07/31 16:01:28
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/10/08 10:20:31 (permalink)
    0
    stevereinert
    Hi Epicedium,
     
    We were able to get El Capitan installed on a Mac Mini for testing.  The machine's specs are not performance specs like your laptop (2 GHz Intel Core 2 Duo, 3 GB 1067 MHz DDR3 Ram, NVIDIA GeForce 9400 256 MB). MPLAB X runs fine there with a couple of projects open, including a large Harmony project.  No 300ms new line or navigation delays.  I suspect it is an issue with the new Metal API and/or Retina display, but I'd like to probe more.  Can you send me a private message through here if you're interested in discussing further?  This will require some back and forth communication that is off topic from the main thread.




    I don't think the problem is the new Metal API because I also experienced the same problem running Yosemite.
    #18
    dsMartyn
    New Member
    • Total Posts : 30
    • Reward points : 0
    • Joined: 2012/11/03 01:56:06
    • Location: 0
    • Status: offline
    Re: Running MPLAB X v3.10 with JRE8 2015/11/05 06:53:08 (permalink)
    0
    when using MplabX 3.10 JRE 8.0.45  on OS X El Capitan, the window system behaves really strange.  when opening a file it opens in the bottom 'output' pane, when following compiler warnings the files open in another panel and manually moving them back is irritating as it does it every time.
     
    however when using the latest JRE 8.0.66-b17 it's stable and no window issues.
     
    3.15 has just been released so who cares about 3.10...!
     
    Regards
    Martyn 
     

    post edited by dsMartyn - 2015/11/05 06:55:23
    #19
    Jump to:
    © 2017 APG vNext Commercial Version 4.5