FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » Java (compilier) help!

   
Author Topic: Java (compilier) help!
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
I've been trying for about two months to get Elcipse (the Java compilier) to install on my system, and no matter what I do it tells me to check a log file that doesn't exist (an error occurs as it trys and fails to open). So I'm in a bind. If anyone can help with this problem of course that's be great, but I doubt it, so my question is, are there any good Java copmiliers out there (besides Eclipse)? And if they're command line type programs, how do you do that?

I have what is basically a UNIX emulator (Cygwin), so I can probably handle UNIX or Windows appilications.

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
kaioshin00
Member
Member # 3740

 - posted      Profile for kaioshin00   Email kaioshin00         Edit/Delete Post 
Umm. You can't use the compiler that comes with the java development kit from sun microsystems?

[ November 08, 2004, 10:54 PM: Message edited by: kaioshin00 ]

Posts: 2756 | Registered: Jul 2002  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
[nitpick] Eclipse is not a compiler, but an IDE. And you spelled it wrong anyway.[/nitpick]

Why don't you just use the java compiler that comes with the development kit, and emacs for editing source code? Works perfectly for me.

Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
kaioshin00
Member
Member # 3740

 - posted      Profile for kaioshin00   Email kaioshin00         Edit/Delete Post 
Hurray! another emacs fan! Down with Vi.
Posts: 2756 | Registered: Jul 2002  |  IP: Logged | Report this post to a Moderator
Zevlag
Member
Member # 1405

 - posted      Profile for Zevlag           Edit/Delete Post 
Down with VI!?!

*whacks kaioshin*

Posts: 2102 | Registered: Dec 2000  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
<-- must admit that, forced to choose, its emacs all the way. I like an operating system available in my text editor [Wink] . However, I tend to do most of my coding in BBEdit, a wonderful mac app.

People above are right, what you're talking about is an IDE, which is essentially unrelated to a compiler (though the IDE often hooks into the compiler). There are many, many Java IDEs out there. This search lets you find tons of them: http://www.google.com/search?q=java+ides&ie=UTF-8&oe=UTF-8

Furthermore, as eclipse is a very popular open source project I would suggest some simple steps: google for the error you get when you try to start it (if the error seems environment specific, try to pick out general elements of it). Ask on some programming forums about the particular error, or perhaps on the Eclipse mailing lists or newsgroups (all referenced on the eclipse website). In fact, make sure when you google you take a look at the google groups tab.

If you haven't solved your problem at this point, its likely quite a problem [Wink] .

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Bekenn
Member
Member # 6602

 - posted      Profile for Bekenn   Email Bekenn         Edit/Delete Post 
It's also worth noting that Borland has a free version of JBuilder available from their web site.
Posts: 293 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
Huh. I've never had an issue installing Eclipse. Did you make sure you installed Sun's JDK beforet installing Eclipse?

-Bok

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
IanO
Member
Member # 186

 - posted      Profile for IanO   Email IanO         Edit/Delete Post 
Yeah, from what I remember, Borland puts out JBuilder X, foundation version, for free. Doesn't do everything (of course, neither does professional) but I found it very useful. It became very intuitive.

Start here

Posts: 1346 | Registered: Jun 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
I've got JBuilder installed and running, haven't tested it out yet but it looks good. Thanks! [Big Grin]

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
twinky
Member
Member # 693

 - posted      Profile for twinky   Email twinky         Edit/Delete Post 
BBEdit: It Doesn't Suck™.

Best slogan ever. [Big Grin]

Posts: 10886 | Registered: Feb 2000  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
So I've got JBuilder up and running and I really like the interface, this is good. [Cool] The one thing is that it doesn't seem to want to handle multiple Java files. As in, if I extend one class with another it tells me it doesn't recognize the second class even though I certainly have the class file in the project and what not. Was Eclipse letting me get away with (not doing) something that I need to do to make the compilier recognize that there's other files out there, or is there some setting I haven't found yet in JBuilder or what?

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
kaioshin00
Member
Member # 3740

 - posted      Profile for kaioshin00   Email kaioshin00         Edit/Delete Post 
*cough*

Why don't you use the compiler that comes with java development kit? [Confused]

Posts: 2756 | Registered: Jul 2002  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
I like a more ... user-friendly IDE. Which yes, I actually do know what it is, I just don't care enough to distinguish between it and a compiler. [Wink]

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
And I'd just like to say that though I'm normally a Microsoft fan, at least in terms of their products, and I really love developing on MS VS .NET, I seriously resent the way they made J#.

That is all.

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
*bump*

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
*bump* ?

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
MrSquicky
Member
Member # 1802

 - posted      Profile for MrSquicky   Email MrSquicky         Edit/Delete Post 
Hobbes,
What are the bumps for? Isn't the business here done?

Incidentally, if you're using JBuilder (I think the free thing is a good mrketing thing on their part. I bought the more advanced stuff because they got me hooked on the free versions and now it's what I'm comfotable with), I'd recommend checking out the opentools site. They've got some pretty spiffy add-ons there.

Posts: 10177 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
kaioshin00
Member
Member # 3740

 - posted      Profile for kaioshin00   Email kaioshin00         Edit/Delete Post 
post.count++;
Posts: 2756 | Registered: Jul 2002  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
quote:
So I've got JBuilder up and running and I really like the interface, this is good. The one thing is that it doesn't seem to want to handle multiple Java files. As in, if I extend one class with another it tells me it doesn't recognize the second class even though I certainly have the class file in the project and what not. Was Eclipse letting me get away with (not doing) something that I need to do to make the compilier recognize that there's other files out there, or is there some setting I haven't found yet in JBuilder or what?
Hobbes [Smile]
Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
MrSquicky
Member
Member # 1802

 - posted      Profile for MrSquicky   Email MrSquicky         Edit/Delete Post 
Hobbes,
My bad. It sounds like you may be running into packaging problems. When you create a new class, JBuilder generally defaults to putting it into the package of the currently active file. Check to make sure that you're package statements are congruent and, if not, just import the class in the other package into the thread or refactor the package assignment in the class you want to change.

Or it could be that the class it says it can't find isn't on your project's classpath. You can change that by using the menu itme Project -> Project Properties and then under the Paths section (it should be open by default) select the Required Libraries and add the other project or library that contains it.

There's also an OpenTool that I use that's really useful for class importing that makes it so you can press Ctrl+F11 over a not found class and it will give you a dropdown list of all the classes in your current classpath that could match that class and let you automatically import it by clicking on the right one.

I hope that helps. If it doesn't, give me a more complete description of the problem and I should probably be able to help.

Posts: 10177 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
It seems to be working, thanks a million Squicky-mister! [Big Grin] [Group Hug]

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
OK, so now I'm having a new problem (unrelated to work for once) and I'm hoping that someone knows what this is right off the bat... I createde a new project from existing .java files (I've tried multiple ways of doing this, from creating the project with the working directory where the code was, to creating a blank project and then adding in the files manually). And I continually get the problem that it thinks various files (the it here being JBuilder) are defined twice, listing the same path for each file (like the file .../.../.../...java is also defined at .../.../exactly_the_same_path). And then of course, can't compile since it thinks there's an error. I've tried searching through project properties and what not to see if there's two pointers to this folder, or another one, as a source folder but I can't find anything. Any ideas?

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
*bump*

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Jay
Member
Member # 5786

 - posted      Profile for Jay   Email Jay         Edit/Delete Post 
This was build with your other tool? Anything in there it could be referencing?
I know sometimes JBuilder can be picky about libraries. Can’t think of anything else right off the bat.
Can you post the error? That might have some goodies in it

Posts: 2845 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
MrSquicky
Member
Member # 1802

 - posted      Profile for MrSquicky   Email MrSquicky         Edit/Delete Post 
JBuilder doesn't like it when files aren't stored in directories that reflect their package structure. Sucks, but there you go. It sounds like that's probably what you're running into.

If you have a bunch of classes in say a squicky.bluebuttbaboon package, the java files need to be stored in a directory like /src/squicky/bluebuttbaboon. If the directories don't match up with the packages, you get problems like what you're talking about.

Also, when you move files around in directories and packages, you generally need to rebuild the project instead of just compiling it. Otherwise, JBuilder tries to include all the previous generated class files in its build and you'll generally run into something like a class defined in more than one place error.

Hope this helps.

Posts: 10177 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2