Suddenly I have started getting this error.
It was working fine as expected until recently for months without any issue.
The problem I am facing is when I am opening file associated with Netbeans using double click, on 1st instance it opens fine but while opening the second file using double click.
I get a window telling:
An instance of the program is already running with your user directory
Either a previous session of the program is running on a different computer
and using the same user directory.
If another session of program is running with the same user
directory,please click to cancel to prevent the corruption of the user
directory. If you are sure that no other instances of the program is running
with your user directory, click OK to continue.
I have google for error. The only solution I found is that there is lock file in your user directory which needs to be deleted.
But in my case what I observed that there is no stale lock file. The lock is present only when Netbeans is running. once I close the netbeans, the lock file is removed on its own.
I have also deleted all the cache, thinking that it might be causing some issues.
But none of it could resolve the issue.
Again If I directly starts Netbeans without double clicking the file, then I am not able to open even a single file using double click and I get the same error box.
Maybe it is late to write but i have had exactly the same problem. So many times i uninstalled and installed old version (like 7.x) , even i uninstalled java jdk :)
I thought to start using JetBrains but i couldnt open the JetBrains. I searched why JetBrains doesnt open for a few hours and i realized that the problem is Kaspersky.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206489659-Error-Cannot-Lock-System-Folders
I uninstalled Kaspersky and opened the JetBrains.
Bingo! :)
And with that NetBeans (8.2) started to open without any problem.
I have no idea why Kaspersky would be a problem.
(Platform: Win 10 , x64)
I need to connect to Matlab from Java using matlabcontrol.
I tried their demos and those are working fine but when I tried to connect to Matlab using my application in Java RCP e4 I get this error (to be clear, my code succeeds in opening an instance of Matlab but afterwards the following appears in the Matlab window):
??? Undefined variable "matlabcontrol" or class "matlabcontrol.MatlabClassLoaderHelper.configureClassLoading".
And this appears in the eclipse server window:
matlabcontrol.MatlabConnectionException: MATLAB proxy could not be created in 180000 milliseconds
I tried searching for the answer and this came up: http://code.google.com/p/matlabcontrol/wiki/Compatibility
They say here that if this error comes, to run this command in Matab: java.lang.System.getProperty('java.class.version')
And if the answer is 50 or greater then matlabcontrol should work, but it doesn't for me.
I can't understand what's wrong (demo works, my code doesn't) and I'm desperately in need of an answer. This is for a project due soon and I would appreciate all the help I can get.
I faced a similar problem. This is what I did to solve the problem.
Go to the properties of your project in Eclipse. You can do this by selecting your project in "Package Explorer" and pressing Alt+Enter or by simply selecting properties on right click context menu.
In properties window, select "Java Compiler" and uncheck "Use compliance from execution.... 'JavaSE-1.8' on....". After that select "1.7" from drop down menu in "Compiler compliance level"
I hope this solves the problem for you!
I was trying out the sample project using libGDX(a clone of Flappy Bird) in Eclipse. This is the link to the tutorial - http://www.kilobolt.com/day-2-setting-up-libgdx.html.
In the step 18(please visit the link), when I clicked the "Run as Java Application", I am getting error alert box with message "LoadLibrary failed with error 87:The parameter is incorect". What could be the reason?
ok even though i didn't understand the reason, just got the solution from here http://aerotekit.com/win8-1-loadlibrary-failed-error-87-parameter-incorrect. This is an issue with windows 8.1 (my assumption) and it can be solved by editing the registry. Copy-pasting the solution below:
Copy this code into a text file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"OpenGLVendorName"=hex(7):61,00,74,00,69,00,6f,00,36,00,61,00,78,00,78,00,2e,\
00,64,00,6c,00,6c,00,00,00,61,00,74,00,69,00,6f,00,36,00,61,00,78,00,78,00,\
2e,00,64,00,6c,00,6c,00,00,00,00,00
Now save the file and change the extension from .txt to .reg. If you are unable to edit the extension you may have to go into your folder options and make the extensions viewable.Note: The next step has you edit a registry entry. I recommend that you make a registry backup before proceeding. While this is unlikely to cause any issues, it is better to be safe than sorry.
After you have the .reg file on your desktop just double click it and it will run.
Restart your computer.
I got the same error when I was trying an example from book. I changed the jdk used in eclipse from 64 bit to 32 bit and this error was gone.
Possible duplicate of Google App Engine JDO enhancement is failing.
This is my first app engine app which I'm implementing based on "appengine-java-sdk-1.8.8" and Intellij Idea 13.0. Following image shows my application.
I have designed my application based on tutorial on Intellij Idea page.
In web.xml file if I clear lines 8-18 and remove mobilesoft.asia package from src folder then application works fine and when I click on Run button then I can see my "Hello world" message that I have written on index.jsp file.
However, with having of my package and lines 8-18 in web.xml then exception happens when I click on Run button.
Any suggestion would be appreciated.
==============
Edit: I downloaded 'datanucleus-appengine-2.0.0-final-dist' via this page. Seems it is latest release. Then I compared with what items I found under appengine-java-sdk-1.8.8\lib\opt\tools\datanucleus\v2 and realized that seems appengine has newer version of datanucleus. Therefore, app engine shouldn't have problem with compile, I'm confused....
finally I found the solution. I set 'Persistence' to "JPA 2" during creation of project. By set it to "JPA 1" problem solved (I don't know why) and I am able to compile the project.
So, select your project from Project panel. Then hit F4. Project structure opens. Select Google App Enfine from middle panel (under name of your project). Set Persistence to "JPA 1".
I used dropbox for my workspace in eclipse. I was working on the code then I lost the connection to the internet for 15 min now Im not able to start the code, I get messages like:
HTTP Status 404 - /DB/register.jsp
type Status report
message /DB/register.jsp
description The requested resource (/DB/register.jsp) is not available.
Apache Tomcat/7.0.23
The path /DB/register.jsp is there, Im in the path right now. And before I was able to start everything there. Whats is going on with eclipse?
Edit: Ok a solution was to create a new workspace, new project, new tomcat server then add code => working. Sad that eclipse is so frail.
Tomcat has become confused. Just restart it.
I'd suggest you to create a new workspace and copy/paste your code in it. Everything should work just fine then.