I installed Netbeans IDE on Mac OS X few weeks ago. In the code-completion window while writing Java code, I always get the proper full list of possible code completions but in the window that pops-up which is supposed to display JDK documentation entry (all details) for each possible completion, it always say that JDK documentation was not found! It never happened to me when I worked on Windows.
I even downloaded and explicitly added JDK docs library to Netbeans library but to no use. Has anybody faced such problem? Please help! Thanks a lot in advance.
Well since nobody else answered and I had the same issue, but wasn't motivated enough to figure it out, I tracked down the way to do it... look here.
The only changes I did was to use the latest JavaDoc instead of the 1.5 one and to use Java Platforms in step 3 (I am using Netbeans 6.5, I guess the menu structure changed from when he did it).
Related
I have recently set up my VS code to be able to run Java. I downloaded the extension pack for java and then downloaded Azul Zulu jdk to run java programs. So far it runs fine, but for certain snippets of code orange blocks of text will appear. They cannot be deleted or modified in any way, and I haven't changed any settings besides changing VS code to use the Zulu jdk as my default jdk.
Example of the orange blocks I'm getting
I have tried going through my setting related to Java in my VS code, but I can't find anything that would cause this. I haven't done anything besides set up my default jdk and installing the extension for java.
Any help with getting rid of these orange blocks would be appreciated.
Edit:
Java> Inlay Hints > parameter names: Enabled, was the setting that was causing it. Setting this to none fixed the issue. I was confused as the guide I was following did not mention this, nor did it show up on their visual examples when writing code, even though our methods from installing to writing java would have been the same.
First and foremost I am very novice to this so I may not understand all technical terms or how to do everything but will try to and ask followup questions if I have. I've been trying to install TiZen studio, which worked fine until I tried to open the package manager. I can open Tizen Studio, but cannot open the package manager. I've tried to redownload latest jdks etc and read that it may also be due to wrongly implemented environment variables, so I tried to set them but nothing works. Error message when trying to open package-manager
My systemvariables looks like these;these are my PATH variables. Am I doing something obvious wrong? I am sorry for the inconvenience, and what environment variables should I set, where and how?
Computer runs on windows 10!
UPDATE: Can't open Tizen studio anymore. Might've happened sometime after I've changed those environtment variables or something. Not sure, and can't make out what the log means. This is the log I got from the last attempted startup. I know it's tons of text, but I have no idea what it means or what to look for, and maybe someone knows what to do or what anything means.
Thanks in advance!
Regards
I had similar issue and stated in this question that later I updated with solution.
For your issues, here's probable solution that might help you.
You need to set JAVA_HOME variable with value of correct version of JDK that Tizen studio supports. This Guide states the requirements.
Let me know if it helped you.
I've been looking around the forum for ways to solve this, but nothing seems to do it.
I want eclipse to show the information of the methods, but it doesn't. It should appear to the right side of this box:
I've tried downloading Java SE 8 API documentation and adding it to the installed JRE Javadoc location, but it still doesn't work.
Anyone else who's had this problem and managed to solve it?
Thanks
TL;DR: Apple has dropped native feature support in Java. Especially touchpad gestures are not working any longer. I wrote a library that does the job using JNI. Take a look at my answer below.
I'm searching for about hours to make the Apple Java Extensions work on JDK 7 or 8. I have been trying all I can think of. All threads on the internet about this simply blame the JDK for this. I think this should be solvable, because it worked in JDK 6. For clarity: I can make it work in JDK 6, but I don't want this legacy dependency, because not everybody that will use my application has JDK 6 or knows how to install it, let's say. The goal is to make a double-clickable JAR file that will run as expected with the OS X features (menu bar, gestures, about handler, etc...) with every version of Java installed (greater than JDK 6).
Since the developer preview release of OS X El Capitan, it became impossible for 99% of average computer users to install Java 6, so this was no longer an option for me. I finally decided to write a native library that will inform Java about gestures through JNI. The project works great and is hosted on GitHub.
Take a look at it here:
https://github.com/mcourteaux/MultiTouch-Gestures-Java
I just happened to run across your question and noted that it has not been answered yet. I have a Java program that I have been developing on the Mac, and noted that when I ran it under Java 7, the menu bar, Preferences, Quit and About all worked fine using rt. jar in the program's libraries folder and using a MacAppMenuHandler class that I wrote to provide functionality for those items.
However, when I switched to Java 8, they no longer worked. I'm not sure what the issue is though reading other web sites today suggest a "permissions" issue in Java 8 regarding these files.
However, I solved the problem by copying the rt. jar from Java 7 into the program's libraries, and it has continued to work for me while continuing to develop under Java 8.
I suggest this as one possible solution to the problem.
Hope this helps.
Go on your project Properties and select the Java Build Path Libraries, your JRE System Library should have an Access rules field like the one displayed in the image
Hit the Edit button and add an access rule to allow access to the com.apple.eawt package.
I had the same problem with "pinch to zoom" - it works in java 6 but not 7 or 8. I came across this bug in the jdk which seems to be responsible. It says it is fixed in Java 9.
I have been looking for a solution to this problem because I want to use this software in my mac but seems not to work any of the solutions I found..
of course installing the latest version of JAVA -> JDK 7
changing sqldeveloper-Darwin.conf and SetJavaHome /Library/java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
same but changed to /Home/bin just to try diff solutions to the problem
I also changed the sqldeveloper.conf and put the SetJavaHome /Library/java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home there
try to run the sqldeveloper (/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin) shell waiting to see if was going to prompt me or ask me for JDK or whatever a set it to /usr (but never happened)
going crazy now, so decide to make the post to see if someone can help or figure which step I am missing and maybe not seen the mistake..
This is where the program hangs...
at
org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
at org.netbeans.core.netigso.Netigso.start(Netigso.java:190)
at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:198)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1189)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1011)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:744)
I really hope, someone can help me, I really tired of booting on Windows to run SQL Developer plus I find it kinda dumb that Oracle don't encounter this kind of issue to make users experience more nice.. ;)
There is one solution. I have been using SQL Developer for some time now, and i am not happy about it (I am on a MAC btw), there are so many bugs and the intellisense sucks. It is a functional program nevertheless.
Download and use navicat instead. Or try to find another one instead. It might not be the solution you are looking for, but i will recommend it.
http://www.navicat.com