Im am trying to create a gephi project in eclipse. Right now all i want to do is set up the file architecture so i can copy and paste in the example and run it. My problem is when i do that the imports no longer work.i have downloaded the toolkit and I have added the .jar file to the build path. I think the problem is that the package i have is always the default one, but i do not know how to load the gephi package when i start a new project. My question is how do i get the imports to work and how do i start a project with the gephi package or how can i open the gephi demo through eclipse?
To get the file architecture right i just created a new project, and gave that project the exact same name as the file downloaded on my desktop, eclipse took care of the rest.
Related
I have fully working Springboot application project in my Downloads directory but when i moved this project to a different directory for example : C:/User/Documents folder its still running but giving me visual errors. it shows the classes are not imported even though they are and application is still running fine
https://i.stack.imgur.com/8Bmuy.png
Im sure what's the reason is.
PS: Im using git. as version control for this project not sure if it is because I initialized the git when this project was in Downloads folder.
If someone knows the solution please let me know.
Thank you
My suggestion would be to:
Close IntelliJ
In your file explorer/finder, go to the directory you project is is now
delete the .idea, .mvn and target folders
Open Idea again and just open the project from the folder again
Likely Idea is just confused.
I am trying to use the integrated git in Intellij IDEA. On the first computer, everything is fine. Files are uploaded correctly.
However, when I try to pull the project on another computer, although all files are properly downloaded from GitHub, Intellij IDEA could not correctly recognize the project structure.
Only files in the root directory are recognized, the src folder and files in it disappeared.
I have two screenshots here:
Project Structure inside Intellij IDEA
Actual Files on the disk
I am using Windows 10 on both computers, running the latest version of Intellij IDEA and git.exe. The project is hosted by GitHub.
If you are using Windows....the go to your project root path and type this command
**git stash**
i am using Bitbucket and sourceTree on machine so sometimes i am getting the same situation and using this command i can able to get all the code.
I just imported source folders and required libraries from another PC on which I had been working. The project contains JAVA and Python code in separate packages. Now there seems to be some problem with running the Java parts.
Error: Could not find or load main class Drivers.DependencyFinder
I have tried Cleaning and Building the project. It didn't create any classes in the bin folder. When I copied class files from the older PC, it gives some version error.
I'd like to make a fresh build, removing all the things I had earlier other than the source code. Clicking Build All or Build doesn't produce anything. What's going wrong?
Go to the project properties and check Source tab under Java Build Path. Make sure the proper folders are included in the build path.
How do i give the path for the .dll or .so file in netbeans to load the library using
System.loadLibrary("Foo")
I read this on netbeans page but couldn't help me. as it gives the unsatisfied link error.
These are the two things i tried :
In the following snapshot i created a lib folder inside the netbeans project and placed the dll files inside it.
In the second snapshot i created a lib folder inside the modules folder and placed all the dll files inside lib folder as stated in the link.
But both of them give me unsatisfied link error exception. How do i set java.library.path in netbeans so that i can directly test the application from netbeans,
without having to go and write on the terminal ?
Its working now. Some little bit setting you have to do with your Netbean IDE.Only of Netbean IDE.
Follow the Steps :-
==>Right click on the Project
==>Properties
==>Click on RUN
==>VM Options : -Djava.library.path="C:\Your Directory where Dll is present"
==>Ok
Its working 100%. I have done this in my own project.
I'm using Mac OS X Yosemite and Netbeans 8.02, I got the same error and the simple solution I have found is like above, this is useful when you need to include native library in the project. So do the next for Netbeans:
1.- Right click on the Project
2.- Properties
3.- Click on RUN
4.- VM Options: java -Djava.library.path="your_path"
5.- for example in my case: java -Djava.library.path=</Users/Lexynux/NetBeansProjects/NAO/libs>
6.- Ok
I hope it could be useful for someone.
The link where I found the solution is here:
java.library.path – What is it and how to use
To me JDeveloper's suggestion didn't work. However, the method that I came across this early afternoon works handy.
It is for netbeans 8.02, and Visual Studio 2013 generated dll.
create a package(eg, "dll") under [Source Packages] node of netbeans
project
put/copy a dll file(eg, simpleDLL.dll) into the package(eg,
"dll")
on the [Libraries] node of the netbeans project, right-click
and choose "Add Jar/Folder...",
navigate to the folder("src") that contains the folder("dll") for the package that you created in step 1 above (it could be "...\src\dll" in my example), select package folder("dll") and click [Open] button to select it.
-- now you should have added a folder("dll") (which contains the dll file{simpleDLL.dll}) to the Libraries node of the project.
That's it. It should work!
Good luck.
IF you are working on "NetBeans Modules"
DLLs or SOs can be placed in the folder release/modules/lib/ in a module project's sources (look in the Files tab). This will make them appear in the final NBM or application in a lib subdirectory beneath where the module's JAR resides. Then just use System.loadLibrary as usual.
I am currently studying at university and based on other peoples recommendations I am beginnning to read other peoples code.
i have found and downloaded the source for an open source java project, that seems quite interesting. I want to load this project into an IDE (netbeans or eclipse), so as to make it easier to read and navigate. However both IDE's say that the project is not recognised. It is not only this project, but any project I have attempted to load.
How do I load a project (ie. a file structure of source files) into the above IDE's as a project.
Thanks in advance,
Sam
In Eclipse, select File, New, Java Project, give the project a name and then select Create Project from Existing Source. You should then select the src folder that contains the code that you'd like to use.
Eclipse should then create a new project containing the source. To change the project settings e.g. source folders/external jars, right click on the project in the Package Explorer and select Properties, Java Build Path, Source and make any appropriate changes.
Actually there is a cool trick with Eclipse, you should be able to just select the class that you are interested (select all of the text from your browser), and just paste this in Eclipse right on top of a project, it will automatically create a class for you. It's very handy when working with SWT snippets for example.
You need to have created an Eclipse project first. But you can just create one project and put any number of classes in it.
If the open source project in question uses Maven as the build system (i.e., there is a pom.xml file in the root of the project) and you have Maven installed, you can run 'mvn eclipse:eclipse' to build the project files for eclipse to use. Then just use File > Import and select existing project into Workspace and point it at the root of the project folder. Eclipse should then import the entire project with the appropriate libraries. There are also plugins that work for NetBeans and Idea I believe.