[
https://issues.apache.org/jira/browse/NETBEANS-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192705#comment-17192705
]
Geertjan Wielenga commented on NETBEANS-4759:
---------------------------------------------
Running and debugging single Java source files is possible from OpenJDK 11 and
later only.
> Unable to debug a single java file - Fatal Error: Unable to find package
> java.lang in classpath or bootclaspath
> ---------------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-4759
> URL: https://issues.apache.org/jira/browse/NETBEANS-4759
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 12.0
> Environment: Linux. Devuan. 64. openjdk11. Netbeans IDE 12
> Reporter: sun.skyman
> Priority: Major
> Attachments: AreFactors.dump, messages.log
>
>
> The single file was opened in Editor.
> This was an exercise from textbook.
>
> I did install NB12 to view how this new version could RUN and DEBUG a single
> file for a student.
> Then I set a breakpoint at a line of code.
> Then open DEBUG menu, press DEBUG a single file item. And then a popup window
> was shown with asking to submit a bug report.
> I am a newbie, then it is hard to correct send to you a bug report.
> Why NB did not have a mechanism automatically send bug-reports like others
> applications has?
> I send you a messages.log and even don't know is it correct.
> Now I have tried to debug that file like a single file. And a new popup
> window ask send a bug report again.
> Debugger console has:
> Listening on 59237
> User program running
> Fatal Error: Unable to find package java.lang in classpath or bootclasspath
> And by the way when popup window ask to copy, I could not copy the text in
> that window on Linux.
> +++
> UPDATE
> I have uninstalled NB12 with openjdk11 and then installed it again with
> openjdk8 without PHP and JavaEE and there was an issue. Even Editor did not
> start without special nb-javac.
> Then I have uninstalled NB12 with openjdk8 and have installed it again with
> openjdk11, but with /usr/lib/jvm/default-java and it looks like now debugging
> single java file works.
> At the first attempt (when this issue was opened) I used default suggestion
> (if I am rigth it was /usr) or (if I mistaked) java-1.11-openjdk-amd64 or
> java-11-openjdk-amd64, but not default-java.
> When I have opened the issue the 'run single file' worked, but 'debugging
> single java file' did not.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists