Change JDK version for jdeveloper 11g(11.2) in ubuntu - java-7

I am working on a project in jdeveloper where it needs to be built in JDK-7. But when I go to project properties it shows jdk-6 which is preinstalled with weblogic. when compiling project, it also says it is jdk-6. How can I change this?
There is an option though from project properties to change jdk, but I am not sure as it is using weblogic's default jdk and its purpose and hence being very imported project I don't want to change without knowing anything for sure.
Btw, my JAVA_HOME is set to jdk-7. Please suggest.

Change JDK used by JDeveloper
The JDK configuration for JDeveloper is defined in the jdev.conf which located in your Jdeveloper folder\jdeveloper\jdev\bin.
Open the file and find the item SetJavaHome. Change its value to your new JDK folder.
In the below example I switch JDK from JDK 7 to JDK 6 by commenting out JDK 7 and adding a new item for JDK 6.
#SetJavaHome C:\Java\jdk1.7.0_06
SetJavaHome C:\Program Files\Java\jdk1.6.0_45
After saving the changes restart JDeveloper and it will use the new JDK set in jdev.conf.
You can check JDK used in JDeveloper from JDeveloper.
From JDeveloper goes to Help->About. Then select the tab Properties and will find java.home properties now is set to the JDK specified in jdev.conf.

JDeveloper uses its own settings, tends to ignore $JAVA_HOME.
And different versions use different JDK versions and are pretty much hardwired to them.
JDeveloper 11 is linked to JDK6, JDeveloper 12.1 is linked to JDK7, JDeveloper 12.2 is linked to JDK8.
These coincide with the supported versions of ADF and other Oracle specific frameworks as well. If you need to work with different versions of those, you need to have different versions of JDeveloper installed.
While you might be able to select a JDK to compile against that's older than the newest supported version for a release, compiling against a newer JDK is typically not supported in any IDE. It's been several years since I've used JDeveloper, but that was the case back then and the versions I used were 11 and 12 at the time.

Related

Upgrade SonarQube from version 5.6.4 to 6.7.2

I want to upgrade SonarQube and I haven't done this before so I have few question. Please could you help me with them?
How can I find which edition is installed on my server?
How can I find if the installed version is licensed or not?
How can I upgrade from 5.6.4 to 6.7 LTS? Do you have upgrade guide for the same?
You can always find which version is installed by logging into the SonarQube web app and looking at the footer of the page or by going to Administration / System / System Info. If you for some reason can't log in to the web app, and installation folder name does not contain the version number as it does by default, look in the "lib" folder for a file that looks like "sonar-application-6.3.1.jar". That will tell you the version number as well.
Here are the general steps for upgrading, from the Upgrade the Server docs:
Download and unzip the SonarQube distribution of your edition in a
fresh directory, let's say $NEW_SONARQUBE_HOME
Manually install the
non-default plugins that are compatible with your version of
SonarQube. Use the Compatibility Matrix to ensure that the versions
you install are compatible with your server version. Note that the
most recent versions of all SonarSource code analyzers available in
your edition are installed by default. Simply copying plugins from
the old server to the new is not recommended; incompatible or
duplicate plugins could cause startup errors.
Update the contents of
sonar.properties and wrapper.conf files (in
$NEW_SONARQUBE_HOME/conf) with the settings of the related files in
the $OLD_SONARQUBE_HOME/conf directory (web server URL, database,
ldap settings, etc.). Do not copy-paste the old files. If you are
using the Oracle DB, copy its JDBC driver into
$NEW_SONARQUBE_HOME/extensions/jdbc-driver/oracle
Stop your old
SonarQube Server
Start your new SonarQube Server
Browse to
http://yourSonarQubeServerURL/setup and follow the setup
instructions
Analyze your projects (and compute your
Views|Portofolios|Application if you own the Enterprise Edition
product) to get fresh data
Before embarking on this, you will want to check out the intermediate upgrade notes for each version in order: 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, and 6.7.
Note that upgrade notes for versions after 6.7 are hosted at the new documentation site.

Warning major version 52 is newer than 51, the highest major version supported by this compiler

Basicly I'm super newbie and started internship in IT company. I installed VS with Xamarin. The problem that I'm facing is very frustrating. So even when i create empty project I can't compile it and get error like this :
Severity Code Description Project File Line Suppression State
Warning major version 52 is newer than 51, the highest major version supported by this compiler.
I searched all over google and asked so many people and still no fix of my problem. If anybody can help me via skype or teamwiever i will APPRECIATE so much. My skype: toniterdal , feel free to add me.
I was having the same issue, and tearing my hair out. I had the JDK Version 8 installed, but these warnings wouldn't go away, and eventually they generated a build-breaking error.
When I went to Tools -> Options -> Xamarin, and looked at the Android Settings, the Java Development Kit Location was pointing to jdk.1.7.xxxx, in Program Files (x86).
I changed it to 1.8.0_101, in Program Files. Then I restarted Visual Studio, and the same error happened again. Somehow, Visual Studio was detecting Version 7 of the JDK and pointing it to that automatically.
So the solution turned out to be very simple. As well as installing Version 8 of the JDK, UNINSTALL Version 7 of the JDK. As soon as I did that, Xamarin turned out to be much better behaved. This step solved a whole bunch of seemingly unrelated problems.
That error is telling you that the Java Class version that is being loaded was compiled with Java 8 (52) but Java 7 (51) is trying to load that compiled class.
Java 7 uses major version 51
Java 8 uses major version 52
Check which Java version(s) are installed on your machine and review Xamarin's requirements and Java installation steps (linked below)
Installing the Java SDK (JDK)
For people having problems with setting the appropriate JDK version, you might want to try to override this setting in the vs2015 options dialog:
Delete bin folder and obj folder and run the project it will be work fine
You have a bad proguard.jar file, you need to replace this .jar by a correct version. The steps below describing how to do that. Some colleagues had the same problem here.
Go to Preferences => SDK locations and copy the Android SDK location.
Go to that folder (mostly /Users/USERNAME/Library/Developer/Xamarin/android-sdk-macosx) and go to the folder tools/proguard/lib.
Here you find a proguard.jar.
Rename this to proguard_OLD.jar.
Download the last proguard file (like this one https://sourceforge.net/projects/proguard/files/)
Unzip and place the proguard.jar in the tools/proguard/lib folder
Rebuild your Project
Everything should be fixed!
You can find more info about the bug here:
https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/
For me worked to change the SDK as well, but under Options->Xamarin->Android Settings, I don't have Cross Platform in Options for VS 2015Pro
Note for Windows 64 bit users, the JDK has to be the x86 version not the x64 version.
E.g. C:\Program Files (x86)\Java\jdk1.8.0_111
Kaloyan you can find the setting for the Java SKD under Tools->Options and the click on Xamarin in the Options list, then select Android Settings. I installed the latest Java version (8.0.111) and then did a clean on my project and it runs fine now with no errors. Thank you everyone for your posts!
In my case, i had to reinstall the JDK 8 (the last version) because other versions JDK 7 couldnt work even with new projects or clean up projects, and also i had to do a clean install of the android sdk.
This is how I solved the same issue I faced today:
From Control Panel > Uninstall a Program > uninstall the older Java versions which are on your system.
You should only have Jdk 1.8 and Jre 1.8 on your system.
Now go to C:/Program Files/Java and delete all older java versions.
If you have setup your JDK 1.8 and JRE 8 in C:/Program Files (x86)/Java then cut paste them into C:/Program Files/Java folder.
Then I restarted IntelliJ IDE which I am using. It automatically asked to update the path of SDK. Update the path to point to Jdk 1.8 and then I recompiled my files and things started working well.
Hope it works for you too!
In my case, I had just deleted .class files and worked fine.

STS 3.7.2 oracle enterprise pack java prompt

I just installed STS 3.7.2. Since my application uses weblogic 10.3.6, i tried installed the oracle enterprise pack (oracle weblogic tools). I finally got around to installing it and now everytime STS starts up, it says "Eclipse is running on JDK 1.7..Oracle enterprise pack requies java 8 and above..". The following screens prompt me to pick jdk 1.8. Once i pick the folder location, STS shuts down. upon starting it up again, i go through the same prompt of picking java 8 installation location. Not sure why STS does not remember.
Try modify java home at eclipse.ini
https://wiki.eclipse.org/Eclipse.ini

ibm Rational Clear case plugin(extension) is not working in Oracle Jdeveloper

Presently i am working with Oracle Jdeveloper 11g Release 1(11.1.1.6.0) as IDE and Rational clear case Remote client 7.1.2 for version control.
While installing the plug in for clear case there was only an option with clear case version 11.1.1.6.38.61.92 and i proceeded with the installation
but when i am trying to connect with clear case using the plugin i am getting an error message "clear case executable is not installed ot not located in your system
environment path".Is the plug in is backward compatible? please Help me to fix this issue.
The ClearCase plugin would only work with a full ClearCase installation on your workstation (where JDeveloper is installed)
But I would be surprised if that plugin would work in a CCRC environment (where you don't have cleartool installed locally)

Include (bundle) a JRE within the NetBeans Installer?

I developed a Java Swing application on the NetBeans Platform (RCP). I want to include the Windows JRE with the installer that NetBeans generates in case a PC does not have JRE installed, but I do not know how to do this. I have tried to follow the following instructions but failed (I find that the instructions assume that you know absolutely everything on JDK and JRE, for example I would get the message 'pack200' is not recognized as an internal or external command...it would seem that some paths are wrong or outdated):
How to bundle JVM (JRE/JDK) in the installer bundle?
Including the JRE in a NetBeans Platform Installer
Installing the JRE via an Application's Installer via Windows
I am trying to pack the JRE version 7u7
My JDK folder structure is the following:
C:\Program Files\Java\
in here I have the following two folders:
jdk1.7.0_07 and jre7
Please help me...Thank you so much
I have followed "Installing the JRE via an Application's Installer via Windows" in your link to successfully create a Windows installer for my Netbeans platform application.
What are the problems you encountered?
"'pack200' is not recognized as an internal or external command" is because %JAVA_HOME%/bin is not in your PATH (environment variable). You can run pack200 with
"C:\Program Files\Java\jdk1.7.0_07\bin\pack200" -J-Xmx1024m rt.jar.pack.gz rt.jar
Btw, it seems like "app.conf=nbproject/my.conf" part in the article is outdated. I have to modify directly the file "build/launcher/etc/app_name.conf" in my project.
Maybe this guide can help you:
Self-Contained Applications: Package non-JavaFX application
https://blogs.oracle.com/talkingjavadeployment/entry/packaging_improvements_in_jdk_7#3
One of popular questions people ask about self-contained applications - can i package my Java application as self-contained application? Absolutely.
This is true even for tools shipped with JDK 7 update 6. Simply follow steps for creating package for Swing application with integrated JavaFX content and they will work even if your application does not use JavaFX.

Resources