IntelliJ IDEA on osx lion - How to setup JSDK? [duplicate] - java

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
IntelliJ IDEA JDK configuration on Mac OS
I'm currently trying to get IntelliJ to work on my osx lion. But when creating a new project the wizard shows me the following page:
Please select JSDK for this project
Project JDK
Nothing to show
And no matter where I go with the file browser, I always get "nothing to show". Because of that I can't complete the wizard... (I tried several places I found googling)
(Creating Java apps with Eclipse works fine by the way)
What do I have to do to get this working?
Thanks!

IIRC, IDEA already preselected the correct directory when adding a new JSDK.

Related

Finding the location of function name in eclipse ide [duplicate]

This question already has answers here:
Does a "Find in project..." feature exist in Eclipse IDE?
(15 answers)
Closed 3 years ago.
I am new to java world.
I am working on ECLIPSE IDE. I have a function name that i need to use but i am not able to find in which class it is written.
How can i get this information
Can some one help me out here
When you are coding in Eclipse, press CTRL and click on any core Java class/Custom Class/Methods name in your source. You will be taken to the source.
Eclipse will now show a screen saying you don't have the sources installed if you are trying to access a code for which you don't have source. However, in this screen there will be a link saying "Attach source...". Click that link and import the src.zip file from your JDK installation directory (src.zip).
Use JDK in development environment not JRE, this is good for learning

Can't Compile Correctly java, might be a bad version [duplicate]

This question already has answers here:
Build path incomplete only in some workspaces (Android)
(8 answers)
Closed 8 years ago.
My adt work one time very well and i am able to run all the projects and then open in next day it wants some updates for sdk otherwise show error of DDMS missing i updated the sdk and now
Error: Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
Do any one tell me how to solve all these errors and work on ADT smoothly or there any other option.
The problem here is your IDE couln't recognise your SDK location, if you are using MyEclipse the do following
Go to Windows -> preference -> Android and set your sdk path again.
In Studio File -> setting and then set your sdk path.
Then restart eclipse/studio.
Seems you are missing Java itself within the IDE which include java.lang.Object. I'd check to see if the project you are working with has Java on the build path.

where can i find source code of abstractuiplugin which is part of eclipse framework? [duplicate]

This question already has answers here:
How to install source/javadoc for Eclipse PDE?
(2 answers)
Closed 7 years ago.
now i am developing kind of eclipse plugin, sometimes i want to debug into eclipse code, i am using eclipse 3.7 and is now trying to find the corresponding code of some eclipse classes, i am seeking these code with this url http://archive.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/
lot's of code is included by Source Build (Source in .zip) (instructions)
(source: img.itc.cn)
but why i cannot find the code of AbstractUIPlugin?
where i can find the archive which include AbstractUIPlugin? is it part of swing ui framework, or it's part of jface?
any suggestions?
This is part of the Eclipse SDK
For Eclipse 3.7 you can install the Eclipse SDK from the http://download.eclipse.org/eclipse/updates/3.7 update site (in 'Install New Software').
Once it is installed open the Preferences and go to 'Plug-in Development' and select 'Include all plug-ins from target in Java Search' (since 3.7 is very old I am not sure this actually exists in that release).
Once you have do that you should be able to open any Eclipse source file using the 'Open Type' dialog.

Error: "The newly created daemon process has a different context than expected" [duplicate]

This question already has answers here:
Gradle in Android Studio giving error Project sync failed
(10 answers)
Closed 6 years ago.
I would like to start developing mobile applications with Android Developer Studio. I downloaded Android Developer Studio with SDK and JAVA requirements. But when I try to start my project, I get an error:
Error: The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
At least one daemon option is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\Java\jdk1.8.0_31,daemonRegistryDir=C:\Users\mustafac\.gradle\daemon,pid=9040,idleTimeout=null,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1254,-Duser.country=TR,-Duser.language=tr,-Duser.variant]
Actual: DefaultDaemonContext[uid=89bee64b-dc23-47f4-a5f6-20fae6341e82,javaHome=C:\Program Files\Java\jdk1.8.0_31,daemonRegistryDir=C:\Users\mustafac\.gradle\daemon,pid=3128,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1254,-Duser.country=TR,-Duser.language=tr,-Duser.variant,http://www.netmahal.com/?bd=hp&oem=hprotect&uid=WDCXWD10EZEX-08RKKA0_WD-WMC1S139379893798&version=&pid=3662073653&cs=6d6fd47ad2184eae96bfc61874ec42f4]
I also checked sth from internet and I tried to change JDK Location from project structure. But it didn't work for me. Any idea what I'm doing wrong?
I have also encountered this problem, for my case, I am using Intellij 15.06,
what solved my problem is just go to the directory, JAVA_HOME > jre > lib, and rename the tool.jar to tool.jar.bak, and then try to start a project or import a project again, at last, do not forget to rename it back to tool.jar.
Hope this will help you.

R.java in Eclipse for Android SDK not generating [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Developing for Android in Eclipse: R.java not generating
Im using Ubuntu 12.04 with Eclipse Indigo (I downloaded classic, and it poped up with that on the splash screen, so I guess thats it). I am trying to use the Android SDK with it. I downloaded all the SDK's possible from the interface, then added the Eclipse plugin. I created a project to mess around with Android stuff, and there are two errors. One error I fixed. The other was something like, "R.java does not exist". I Googled it, and found other Stack Overflow questions similar to this one. I made a new one, because all the answers to the other questions didnt work. I tried cleaning my workspace and my project, I tried reinstalling the plugin and the SDK. Nothing worked. Is there anything Im missing to have Eclipse generate R.java? I am also using the 32-bit version of Ubuntu, if that makes a differece.
You failed to actually include any code in your question, so we cannot help to verify whether or not it is correct.
Assuming your Java code is correct, most likely your cause is an error in a resource or your AndroidManifest.xml file that is preventing R.java from being regenerated. To figure out what is going on:
Look for red X marks in the Package Explorer for resources or the manifest
Look in the Console for error messages
Look in the Problems view for error messages
Try the following to see if it helps
right click on the project
select Android tools
select Fix Project Properties

Categories