This morning when I was trying to load IntellJ it doesn't boot up. I see idea.exe under process tab. When I tried to run idea.bat from command line, I get the following:
Invalid Log Path: Log path 'Ç:\Users\NAME.IdeaIC2016.3\system\log' is inaccessible. If you have modified the idea.log.path property please make sure it is correct otherwise please re-install the IDE.
Check folder permissions, it may be owned by admin for some reason. Try removing this folder so that IDEA creates it again.
Run disk tool with permissions fix.
Taken from:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206156759-IntelliJ-IDEA-14-1-1-on-Mac-OSX-Log-path-Users-username-Library-Logs-IdeaIC14-is-inaccessible-
Related
I created a repository on GitHub that has a few files of java I wrote. I am trying to run the repository through my terminal. I am wondering what commands I need to enter in the terminal as well as what I need to write in the run file within the repository. Here is a link to the repository: https://github.com/mowteam/JAVA-THINGS but I will try to provide the necessary code in my question.
Currently, I have created a run file in the repository as well as terminal commands so that I can run my repository.
Terminal Commands:
git clone https://github.com/mowteam/JAVA-THINGS
cd JAVA-THINGS
./run
File Name: run
#!/bin/bash
javac src/*.java
java -cp src/ NewYearClock
rm src/*.class
(note that I put the file I want to run in a folder named src and the file's name is NewYearClock as well as the class name in the file)
However, I keep receiving "Permission Denied" after I enter the ./run command. Therefore, I think the run file is the issue. I got the run file from another repository that I found and then changed the names so that is likely the cause of the issue. Does anyone know what is causing the 'permission denied' or how to fix the run file? Note: I don't know server-side coding. Thank You!
What you put in that file depends on what you want it to do.
I'm not a Java expert, but the current file looks at least semi-reasonable. You're compiling your code, running it, then removing the compiled version.
Your error isn't entirely clear (please include the entire, exact error message next time), but I suspect that it's just a permission error. On Unix-like systems, only files with the execute bit set for the user running the code will be executed. Make your run file executable, e.g.
chmod +x run
then try again. As a side note, this is the only permission bit that Git cares about. You'll see that Git now views the file as modified, and you will probably want to commit that change.
Before running from the terminal, SSH or HTTPS mapping is to be done. With this, connection between the local desktop/machine/server from where you are trying to access the Git repository and GIT will be established.
Generate the SSH key on local machine from where you are trying to access the repository
Under your git profile settings in GITlab/hub, add that key
Along with this, you need to configure username and email in .gitconfig file
I searched and tried answer but problem didn't solve, I git init into android project and after making first push, I changed alot of things removed added new files and fonts (I don't remember if i git added during this) now when I ready to pus i ran command git status I see files in red as untract files, then I ran git add . but Im getting this error:
warning: LF will be replaced by CRLF in app/app.iml.
The file will have its original line endings in your working directory.
fatal: unable to stat 'app/src/main/res/drawable/slide_thre.jpg':
Permission denied
the file slide_thre.jpg I deleted way before git add wen I was working but its still showing this error, I dont know if its cached
I tried closing IDE before git add and tried other solution but didn't work
Try closing any programs that have the folder open, such as editors,
explorer windows, command prompts, and FTP programs. This always fixes
the issue for me on Windows.
You can also try "invalidate & restart" your IDE, that should clean the caches.
Lastly, try disabling the virus checker just to see if it would let you through then.
SO Post
did you close your photoviewer application which open slide_thre.jpg?
So, I've been trying to create a resource folder/directory for my java project in Intellij IDEA. For some reason I can't actually get this to work.
So now I go to create a directory under my helloworld package
and this error message shows up "failed to create directory (x location)"
but I go to check my folder where all my other stuff for the project is stored, and there is a folder there with the exact same name. Anybody got any idea what's going on here?
(I'd post pictures but apparently I need 10 reputation?? which I don't have. Sorry.)
before i same ploblem
in my case, i use, Option on a right-click menu of a program icon that, when selected, allows the program to run with full administrator privileges.
after working
my os windows 10
I am using Apache Tomcat 8 and I've JDK 1.7.
Tomcat starts running after I run "startup.bat". But when I try to run "http://localhost:8080/", it shows an error: "HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp"
Please help me to fix this.
Click here to see the screenshot
IT'S WORKING!
What I did:
Opened command prompt using "Run as administrator"
Went to the "bin" directory of Tomcat folder.
cd C:\Program Files\apache-tomcat-8.0.3\bin'
Entered 'startup' to run 'startup.bat' and the server started
Opened a web browser entered http://localhost:8080/ and it worked like charm. This also started generating Tomcat log files too.
The only different thing I performed is "Run as administrator".
But I checked with Tomcat7 it did not require me to "Run as administrator" but it worked; not sure why
Check the lib folder of your tomcat installation. It must contain the JARs jasper-el.jar, jasper.jar, and jsp-api.jar. If they exist, maybe you should add Tomcat 8 in the Java Build Path for your project.
EDIT:
What you can do is to run shutdown.bat. Then look for a file called catalina.out in the logs folder of your tomcat installation. Open it in a text editor, delete all of its contents and save. Then try running startup.bat again. Next copy the contents of catalina.out and paste them here. This may help other people solve your problem.
I had the very same error attempting to reach the manager URL (actually, 404 then 500 after page refresh, each single time). I thought it was <SERVER_BASE_URL>/manager/. It turns out it was <SERVER_BASE_URL>/manager/html.
It’s worth mentioning it wouldn’t tell me I wasn’t using the right credentials either.
Simple, A ClassNotFoundException throws when some where a class that is used in the code is missing.
EG : If it is for servlet, then it means something servlet api that is regularly available to tomcat is now missing for some reason.
quite possibly the servlet-api.jar file in tomcat's lib folder (maybe other jar files in the tomcat lib folder) have become corrupted or removed.
Find it, you'll fix that.
I'm trying to compile a Flex application in Ant (no problems here, I can do it fine). When I try to publish the contents of the project to a Windows network drive (known as "Z:\" on my system), I get the following LAME exception thrown by Java/Ant:
BUILD FAILED
C:\workspace\bkeller\build.xml:42: Failed to copy C:\workspace\bkeller\web\assets\text\biography.html to Z:\web\bkeller\assets\text\biography.html due to java.io.FileNotFoundException Z:\web\bkeller\assets\text\biography.html (The system cannot find the file specified)
Which kind of sucks. I can't find any way to get rid of this problem and it's pretty crucial to my project that I get this working. I know for sure that I have read/write/execute permissions on the network drive, I can create/edit/delete files on the drive just fine through Windows explorer.
Drive Z is a network mount to virtualbox, allowing me to get access to my host OS, Ubuntu. I've double checked that it has write permissions. Any ideas?
Seeing as how Z is a network mount, verifying that it works (e.g. that you can create / write files) through Windows Explorer may not be the same thing as verifying that it works from within Ant:
You may have specified the necessary user / password sometime in the past and Explorer remembered it (so it doesn't ask you again). Ant obviously wouldn't.
Ant may run as a different user, especially if you spawn another process inside the build.
Can you write a simple test in java and see if it can create a file on your Z: drive? Perhaps that'll provide some insight. You can also run ant with -debug switch and see if it provides a more detailed info. At the very least it would print a stack trace and you can download Ant source and see what's happening.
Just experienced the same problem. The copy target was a regular network drive connected to my Windows 7 machine.
I was able to solve the problem by restarting Eclipse.
The cause might have been that Eclipse was running with Administrator privileges because of an Eclipse update I had been performing beforehand.
Does it go without saying that the file actually exists? Regardless, while you may have permission, does the process that is actually running the ant task have permission?
you certainly thought about it, but have you tried
Z:/web/bkeller/assets/text/biography.html
I always use the / instead of \ even on Windows and can't remember having a problem with the Copy target.
It was a problem in VirtualBox's shared folder system. It was fixed a few releases ago by 3.0.X.