LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing Bash path info? (https://www.linuxquestions.org/questions/linux-newbie-8/missing-bash-path-info-4175477017/)

Jagdriver 09-13-2013 12:55 PM

Missing Bash path info?
 
Hi All... this is my first post.

I have Cygwin installed with Bash on a 64-bit Win8 OS. I can launch a terminal window and am able to navigate to a parent J2EE app folder where a start file (no file extension) lives, but when I run this:

./start

I get this error message:

Error: Could not find or load main class play.core.server.NettyServer


How to resolve? Do I need to modify one or more of these (below) to include some path info? And how do I do this?

.bashrc
.bash_profile
.inputrc
.profile

Firerat 09-13-2013 01:05 PM

looks like java

why execute it through Cygwin bash?


use the start.bat, in windows

Jagdriver 09-13-2013 01:32 PM

Yes, I'm trying to run a Java app.

And I know the CMD window in Windows, as well as its START function.

That said, can you please be explicit (incl. exact syntax) regarding what the CMD line is that I should be entering at the CMD window prompt to run the app, provided that the only way I now know to run it is in a Terminal window on a Mac platform using the ./start command?

Thx

YankeePride13 09-13-2013 01:44 PM

You need to add that class to your class path.

Jagdriver 09-13-2013 01:49 PM

Sorry, but I do not understand.

I understand DOS/Windows paths and how to modify them, but your answer has me confused. I am in the dark when it comes to Java and UNIX... that's why I'm posting the noobs forum. I need my hand held for a little while.

Firerat 09-13-2013 01:51 PM

but you have windows 8

it is java, it should run in windows 8
use the start.bat file
no Cygwin required

YankeePride13 09-13-2013 01:52 PM

Basically a classpath is what tells Java where to look for .class files. Here's some more info:

http://docs.oracle.com/javase/tutori...ent/paths.html

Jagdriver 09-13-2013 02:07 PM

Java is in my Windows path:

C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;<a whole bunch of other stuff>;C:\Program Files (x86)\Java\jre7\bin

As for a Java classpath, I have no idea what's required here; again that's why I posting in the noob thread and asking for specifics.

Firerat, your suggestion to use the start.bat file is of no use to me right now because you haven't told me anything beyond that. If I knew what you meant, I'd be doing it right now. But I don't, so I'm not. Please spell it out for me, as if I'm one of those ... For Dummies book readers. Thanks

YankeePride13 09-13-2013 02:12 PM

If you read what I sent, you would know there there's a difference between your PATH and CLASSPATH.

Being snarky with me isn't going to get you any help. I will not do your work for you, I will only offer suggestions on how YOU can reach the answer. I was volunteering to help you, but I guess this point is lost on you. Good luck.

Jagdriver 09-13-2013 02:18 PM

I'm NOT being snarky, and I did read the info at the link.

I'm not here to be a troll or start a flame war, but rather get some noob help. If the Newbie forum isn't the place to get such help, then this forum isn't of much use, is it?

MORE.....

OK, I missed the info at the bottom of that page regarding "all platforms", as I stopped at the Windows section. I've now added a classpath env. var. that points to the location of the .jar files. I've checked the SET in a CMD window and have verified that both env. vars are registered in the OS.

So.... how to start the app?

Firerat 09-13-2013 02:38 PM

  1. please link the java app you are trying to start
  2. you have win8 and java for win8 installed
    why are you trying to start this java app with Cygwin?
    do you have java compiled with Cygwin?

schneidz 09-13-2013 02:44 PM

Quote:

Originally Posted by Jagdriver (Post 5027295)
...
I'm not here to be a troll or start a flame war, but rather get some noob help. If the Newbie forum isn't the place to get such help, then this forum isn't of much use, is it?
...

i think you are in the wrong forum. this site is for linux related questions/topics. linux is an operating system similar to microsoft windows and mac os but is designed somewhat differently therefore windows software doesnt run on it natively.

Firerat 09-13-2013 02:51 PM

I'm quite happy to fill in the details needed to start this java app in windows ( although I don't use windows )
but I will need to read the instructions on the website for the java app

what you are trying to do is like me trying to play minecraft by installing java in wine
No reason for me to do that as I can start minecraft with the java that is native to linux.

Oh, I'm pressed for time, Friday night an all that.

Jagdriver 09-13-2013 02:53 PM

1 Attachment(s)
Please see the attached screenshot.

I have the JRE\bin in my PATH, and have a CLASSPATH that points to the location of the .jar files in the LIB subfolder.

All I have to launch the app is the company-provided start file (no extension). On the Mac platform that I'm borrowing (and on which the app was created), I ordinarily open a Terminal window (hence the Cygwin direction in which I was initially headed), CD to the gluetop folder, then execute a ./start.

Now attempting all of this on a Windows platform, I'm baffled, and the company engineers don't have the time to worry about a lowly Windoze user like me (who is also a contract-to-hire assignment, so don't want to make waves).

ntubski 09-13-2013 03:01 PM

Maybe post the contents of start here, probably it will have to be converted to CMD syntax. Cygwin does some weird things with pathnames so it's not too surprising it failed.


All times are GMT -5. The time now is 06:54 AM.