The system cannot find the file C:\play\bin\..\conf\sbtconfig.txt - java

ACTIVATOR_HOME=C:\play
The system cannot find the file `C:\play\bin\..\conf\sbtconfig.txt.
'findstr' is not recognized as an internal or external command, operable program or batch file.
The syntax of the command is incorrect.
I'm facing this problem while installing the play framework.
I intalled sbt and Scala as referenced by one tutorial on the internet, but in vain.
My Java JDK is working properly and sbtconfig.txt file is not in play bin where above file is point to.
Please can anyone help me?

If you do not provide sbtconfig.txt then installer will throw warning but it will not stop. I have successfully installed play2 even after that message.
So please check that SBT_HOME and ACTIVATOR_HOME are correctly configured. But you got some other error like 'findstr' not found. So try both from creating a command shell and also by double clicking the batch file. I hope that can solve the problem.

Related

Terminal command/executable only works in one directory and errors out in any other directory

I just installed Kawa to code some scheme, https://www.gnu.org/software/kawa/index.html.
I'm using MacOs Terminal (my Mac is currently using Big Sur).
I cloned the repo, and followed all the installation steps specified in here: https://www.gnu.org/software/kawa/Source-distribution.html
Also installed dependencies.
The command that starts the program is "Kawa".
Everything works fine if, and only if, I type "Kawa" command in terminal when I'm in the directory that all the files where copied into. The program runs and I'm able to code in scheme. Please note that this is not a local executable, as I don't have to type "./Kawa" for it to work.
However, if I'm in any other directory and I type "Kawa", the following Error gets printed on the console: Could not find or load main class kawa.repl
Caused by: java.lang.ClassNotFoundException: kawa.repl
I'm just learning about unix/linux and don't know much about java, but I'm guessing this has something to do with file paths?
I checked and some of the files were installed in /usr/local/share/kawa in my Mac. If you go through the installation steps that I linked to above, after you run "make install", it says that you have to manually specify:
CLASSPATH=$PREFIX/share/java/kawa.jar
export CLASSPATH
I don't know exactly what that does. I wonder if this is something that I should put in some file, I tried just typing in the terminal and running the "kawa" command after with no success.
Any help will be appreciated, thank you.

Why isn't my code running in VisuaStudioCode?

I downloaded VS code and tried to run a basic java code in it. I have already installed JDK in my system, set the environment variables too and also downloaded the red hat extension for java. The code runs smoothly in cmd prompt.
But when i run the code in VS it says "File not found in the output and "Hello.java is a non project file" .
The same problem is arising in C program too.
What should i do to resolve this?
[Image] [1]: https://i.stack.imgur.com/hh8o0.jpg
In some cases, launch.json cwd configuration is causing these errors. Could you please also share launch.json file.
This thread might help too.
File not found in Output.
That's because you're running tempCodeRunnerfile.java but hello.java was opened. Also you use the extension Code Runner, so the result will be shown in Output.
After cleaning java workspace, open tempCodeRunnerfile.java and click the triangle button(Run Code) to try again.
It's recommended that using the integrated Terminal to run the code instead of Code Runner.
Hello.java is a non project file.
This couldn't be called as an error but just a warning. Press Ctrl+Shift+P to open Command Platte and choose Java: Create Java Project. Coding in project, this warning won't be shown.
Gif tutorial and more information please refer to Creating a source code file.

how to identify java class path and name to trouble shoot java

I'm using a java bootstrapping command to update a web application according to an xml file I've configured. The xml file has been checked and it's formatted correctly and referenced correctly in the script.
The problem: I keep getting an error that the system could not find or load the main class.
What I would like to do is to view the contents of the jar file. I know that to do this, I should run:
jar tf jarfilenameandpath
What I don't know is WHERE I should run the command. I tried it from a windows command prompt and received the following error:
'jar' is not recognized as an internal or external command, operable file, or batch file.
You don't have to run that command to see whats there in .jar better
way to do it is download the Java Decompiler
See all the classes and try to find the conflict. If everythings looks fine. The only way you can solve this problem is by debugging it.
Did you set Java PATH variable on your Windows machine?
For more details on de-compilers, visit this page on stackoverflow

How to automatically run a program when I connect a phone to my computer?

I am trying to import csv file from a phone to a database.
I am using spring batch and it works with eclipse.
I want to execute this program automatically. So I have tried to create a jar file (using eclipse and then using maven) but it does not work.
I have done a lot of researches about this subject but there is nothing usefull for what I want to do.
My question is : can I execute this program automatically (for exemple when I connect my phone on my computer) ? And if it is possible, do you know how I could do this ?
I had a similar problem earlier. I made it work by writing executable(.exe) file. It was containing simple windows commands along with the Java command to run that jar file(to trigger the job).After connecting a device, I would double click that file. It worked for me.
It was the error using maven.
When I am using Eclipse to generate the jar file I have another problem.
I have a .bat with "java -jar .jar" and when I run it I have :
"A JNI error has occured"

How to fix internal or external command errors in Netbeans?

It builds fine, but when netbeans tries to start the emulator, the following error occurs:
'Blackberry' is not recognized as an internal or external command, operable
program or batch file.
I'm searching for a general solution. Because I found many of the same type of errors on the net (But each one without an answer).
'xxx' is not recognized as an internal or external command, operable
program or batch file.
So how do you make Netbeans recognize 'xxx'?
add the path to your executable to your system path variable .
it will look at those path while executing any executable if executable found from any of those path it OR from current dir it will execute otherwise it will throw the same error.
For Linux you have
PATH=$PATH:/home/user/path/to/executable
for windows you will have something like ,edit it. follow this tutorial for more info

Categories