Where to go for Java Help??

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Where to go for Java Help??

Post by Pyrite »

IMHO, phpDN is the abs() BEST!!! resource, other than the php manual for getting help with PHP. I am amazed at how many people post here and how often too, and how knowledable and friendly the members are as well!

So after doing PHP for 6 years, I am back in college, and lo and behold, I am taking a Java course (pftttt). My impressions of Java are pretty weak so far, but like PHP, it is fun to learn and play with. So my question is, is there like a JavaDN forums out there? What forums would be the equivalent to these for Java peeps?

So far, I find the amount of documentation, forums and help for Java online a bit lacking, especially compared to PHP. But I will give Java the benefit of the doubt and just ask.

Code: Select all

phpDN.equals("http://???");
:D :D
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

I spent sometime digging around for Java sites a few weeks ago. The best thing I could find were toot's mostly on the Sun site. I never did find an online Java community. I figure it's probably because Java is a base language for most Computer Science programs. Like who wants to do Java for fun when it's forced on you all day at work/college... Okay now I'm just guessing. I'm interested in this one if anyone else has tips.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

User avatar
christian_phpbeginner
Forum Contributor
Posts: 136
Joined: Sat Jun 03, 2006 2:43 pm
Location: Java

Post by christian_phpbeginner »

Here is a good resource to start learning Java:
http://java.sun.com/javase/reference/tutorials.jsp

API and Docs:
http://java.sun.com/javase/reference/api.jsp

Free Online Classroom, which is also good, and you can find friends and colleagues there too:
http://www.javapassion.com/javaintro1/

And if you want books:
1. Java 2: A Beginner's Guide. By Herbert Schildt. --> Beginner
2. J2SE 5 Edition: The Complete Referene. By Herbert Schildt. --> Intermediate to Advance
3. The Art Of Java. By Herbert Schildt. --> Advance
4. Instant Java Server Pages. By Tremblett. --> More to implementation
5. J2EE and Beyond (forgot the author).--> More to implementation and discuss more details on J2EE.

Chris
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Thanks for all the replies guys! I made a 107 on my first assignment, which is a Slot Machine game (and yes, I did find a way to use PHP in this assignment, check out my program to see how :wink: )

http://www.pysquared.com/viewpost.php?pid=92
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Post by SpecialK »

That was your FIRST assignment?! I think my first Java was a Hello World :P

Quite enjoyable laughing at the sounds. That alone makes me want to keep playing :)
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

"Whatever your name is, get ready for the big suprise"

Nice first project!
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

haha, that's ace. I'm top score :D

I just started programming Java today. Just done my first task. Too easy :(
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Ah well, if you want a bit of a challenge, see if you can figure out web.xml mappings, hibernate mappings and setup a simple site that uses hibernate to fetch some data from the database ;) (happy learning ;))
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Well, we had several labs in class, but that was our first take home "real" assignment, after 4 weeks of class. However, my first Java program I wrote (which was before school started) was an Ascii to Binary program.

Thanks for the compliments guys. I really spent a lot of time on that one to make it real nice.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

timvw wrote:Ah well, if you want a bit of a challenge, see if you can figure out web.xml mappings, hibernate mappings and setup a simple site that uses hibernate to fetch some data from the database ;) (happy learning ;))
Actually I already started one project that interfaces with MySQL from Java. So far I just have it reading one query of a bunch of names into a JList inside a JScrollPane. Anyone have any experience using SQLite with Java? I haven't been able to get any of the wrappers to work yet.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Pyrite wrote:Well, we had several labs in class, but that was our first take home "real" assignment, after 4 weeks of class. However, my first Java program I wrote (which was before school started) was an Ascii to Binary program.

Thanks for the compliments guys. I really spent a lot of time on that one to make it real nice.
It's pretty nice ;)

PS: If you want some bonus points: Where's the webstart? And why aren't the resources not bundled with the jar? ;) (hint: yourinstance.getClass().getResourceAsStream (...))
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

timv, apparently when using the sun.audio classes to play sounds, bundling the sound files inside the jar isn't supported. Sun I think officially knows this, but since the sun.audio classes are unofficial, they don't provide any support for them, nor care about fixing bugs. That's just what I read though, when i tried to bundle them it would throw an exception with them not found. I haven't tried though with javax.sound.sampled yet.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

timv, And what do you mean by webstart?

Here's the helper method I made for the sounds.

Code: Select all

/**
     * Plays a voice sound from Arnold, the Govenator.
     * The sound files must be located in the same directory
     * as the executable JAR file.
     *
     * @param sound The 2nd half of the sound file name,
     * before the .wav and after the snd_
     */
    public static void playSound(String sound) {
        String filePath = System.getProperty("java.class.path").substring(0, System.getProperty("java.class.path").lastIndexOf('\\') + 1);
        try
        {
            filePath                = filePath + "snd_"+sound+".wav";
            InputStream inputStream = new FileInputStream(filePath);
            AudioStream audioStream = new AudioStream(inputStream);
            AudioPlayer.player.start(audioStream);
        }
        catch (FileNotFoundException e)
        {
            System.out.println("Didn't find audio file.");
        }
        catch (IOException e)
        {
            System.out.println("Input Error with sound file.");
        }       
    }
Post Reply