LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2013, 01:55 PM   #1
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Rep: Reputation: Disabled
Question 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
 
Old 09-13-2013, 02:05 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
looks like java

why execute it through Cygwin bash?


use the start.bat, in windows
 
Old 09-13-2013, 02:32 PM   #3
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-13-2013, 02:44 PM   #4
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
You need to add that class to your class path.
 
Old 09-13-2013, 02:49 PM   #5
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-13-2013, 02:51 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
but you have windows 8

it is java, it should run in windows 8
use the start.bat file
no Cygwin required
 
Old 09-13-2013, 02:52 PM   #7
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
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
 
Old 09-13-2013, 03:07 PM   #8
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-13-2013, 03:12 PM   #9
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 54
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.
 
Old 09-13-2013, 03:18 PM   #10
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
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?

Last edited by Jagdriver; 09-13-2013 at 03:29 PM.
 
Old 09-13-2013, 03:38 PM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
  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?
 
Old 09-13-2013, 03:44 PM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,028

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by Jagdriver View Post
...
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.

Last edited by schneidz; 09-13-2013 at 03:45 PM.
 
Old 09-13-2013, 03:51 PM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
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.
 
Old 09-13-2013, 03:53 PM   #14
Jagdriver
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
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).
Attached Thumbnails
Click image for larger version

Name:	LinuxForumSS.png
Views:	21
Size:	15.5 KB
ID:	13418  
 
Old 09-13-2013, 04:01 PM   #15
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,013

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ld , adding libraries and the search path info Requested theKbStockpiler General 2 09-09-2010 07:56 PM
bash script path issue - how to pass a path as a string to a variable PiNPOiNT Programming 5 04-17-2009 06:48 PM
Missing some info in kde3.5.2 jiml8 Linux - Software 2 06-21-2006 10:25 PM
Convert an info file(bash.info.gz) to a single html file Darwish Linux - Software 2 09-24-2005 07:51 AM
Missing libraries help / info Balkman Linux - Newbie 2 02-11-2004 10:33 PM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration