Final Fantasy Forums
Go Back   Final Fantasy Forums > Final Fantasy Extreme Discussion Central > 1001001011
Final Fantasy Final Fantasy Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

1001001011 Come to this forum to get technical help, or just discuss technology as a whole; computers, electronics, phones, and other accessories that make us drool.

Reply
 
LinkBack Thread Tools Display Modes
Old 02-01-2007, 06:51 PM   #1 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default JAVA

anybody know Java here? I'm sorta learning it.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-01-2007, 08:43 PM   #2 (permalink)
Dionysus_PSI
Member
 
Dionysus_PSI's Avatar
 
Join Date: Feb 2007
Location: Canada
Age: 23
Posts: 72
Rep Power: 4 Dionysus_PSI is on a distinguished road
Default

Java or Java script? I USED to know Java really well, to the point of making GUIs, etc... However I haven't done it in 3 years... I wonder how much I could possibly remember? lol Not much I hazard to guess.
Dionysus_PSI is offline   Reply With Quote
Old 02-03-2007, 11:37 AM   #3 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default

Quote:
Originally Posted by Dionysus_PSI View Post
Java or Java script? I USED to know Java really well, to the point of making GUIs, etc... However I haven't done it in 3 years... I wonder how much I could possibly remember? lol Not much I hazard to guess.
just regular Java. i havent learned javascript yet, but i want too. after 3 years you might forget a few things, but the basics are still there. i'm pretty sure you're not going to forget simple stuff like wat to do with semicolins and brackets and where the go.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-03-2007, 12:28 PM   #4 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

I'm having java at uni right now, almost ready with a big project now, a simulator of sorts. It uses stuff like route calculation, XML files, database communication, socket connections, 3D rendering, all kindsa buzzwords like that. I did the control part of it, about 30 classes of sorts.

Project before that is a remake of the Game of Life, a very well known computer science thingy. Made it with two people (mii and a dude) in about two weeks, and put it online at http://ffomega.net/life. Should be instructions and **** below it.

It's so leet .
YopY is offline   Reply With Quote
Old 02-03-2007, 12:35 PM   #5 (permalink)
I AM THE CAPS MONSTER
Senior Member
 
Join Date: Feb 2007
Location: SomeWhere
Age: 16
Posts: 364
Rep Power: 4 I AM THE CAPS MONSTER is an unknown quantity at this point
Default

w3schools.ORG i think thats the one.
I AM THE CAPS MONSTER is offline   Reply With Quote
Old 02-03-2007, 02:52 PM   #6 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

w3schools is the suck, squared. Don't ever seriously think you'll actually learn much from there.
YopY is offline   Reply With Quote
Old 02-03-2007, 03:22 PM   #7 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default

Quote:
Originally Posted by YopY View Post
I'm having java at uni right now, almost ready with a big project now, a simulator of sorts. It uses stuff like route calculation, XML files, database communication, socket connections, 3D rendering, all kindsa buzzwords like that. I did the control part of it, about 30 classes of sorts.

Project before that is a remake of the Game of Life, a very well known computer science thingy. Made it with two people (mii and a dude) in about two weeks, and put it online at http://ffomega.net/life. Should be instructions and **** below it.

It's so leet .
dude awsome. wish i could do all this. eventually i will though by the time i graduate. i'm only in my second semester of Java/Computer Science.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-03-2007, 04:30 PM   #8 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

Good. I'm in my second year as well. When you've done it and other stuff like software design and data analysis, you'll find it considerably easy. And you'll lol at the older stuff you've made .

Also, it probably sounds harder then it was. I mean, the Route Calculation bit was a matter of creating a rather simple Waypoint object which had an X and Y position and a Neighbour. Then, using an algorithm made by some Dutch dude by the name of Dijkstra, created a bit 'o code to do all that. About 15 - 20 lines of code, calculates a route across 2000 waypoints in just 0.000175 seconds .
YopY is offline   Reply With Quote
Old 02-03-2007, 04:45 PM   #9 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default

Quote:
Originally Posted by Darkl33t View Post
Good. I'm in my second year as well. When you've done it and other stuff like software design and data analysis, you'll find it considerably easy. And you'll lol at the older stuff you've made .

Also, it probably sounds harder then it was. I mean, the Route Calculation bit was a matter of creating a rather simple Waypoint object which had an X and Y position and a Neighbour. Then, using an algorithm made by some Dutch dude by the name of Dijkstra, created a bit 'o code to do all that. About 15 - 20 lines of code, calculates a route across 2000 waypoints in just 0.000175 seconds .
ok um no offence i have no idea what most of the stuff u just said...yet. but anyway i when i look bak at wat i did a semester or two bak it is kinda funny all the crap and mistakes i did. thus hence always keep a portfolio of all the stuff u do to look bak. a lot of times teachers reuse the same stuff over and over like blackjack. ive seen it about a thousand times how to make a simple blackjack game using JAVA. all i have to do is go to my flash drive, pull out what ever source code i have and slightly modify it.

anyway i was talking to one of the graduate students in CS and he was telling me that by the time i graduate i should be able to make my own operating system from the ground up and even create my own language if i felt like it.

wat compiler do u use? a friend of mine has a 200 dollar compiler that corrects all ur errors for u.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-03-2007, 08:29 PM   #10 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

We get to create our own programming language either next period or next year, lofl . We'll see how hard that is. Don't think an operating system in Java would work though. Too slow and stuff.

As for the compiler, I just use the default Java compiler, as can be downloaded on the Java site. I also use the Eclipse IDE, basically an advanced error that provides some handy-dandy features, like error indications (so you can fix them themselves or have the editor fix 'em), code cleanup, code formatting, indentation fixing, stuff like that.

The Java SDK (Software Development Kit) comes with an IDE as well, NetBeans, which seems to offer some more features. But I just prefer Eclipse.

No need to pay 200 bucks for that, really . I mean, once you've done some proper Java for a month, you'll prevent the basic syntax errors from occurring, and if they do occur you just fix 'em. In fact, the language itself becomes irrelevant; it's the ideas behind it, the design, the structure, stuff like that.

You'll find out once you create a project that consists of more then 20 files / classes.
YopY is offline   Reply With Quote
Old 02-04-2007, 12:09 AM   #11 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default

Quote:
Originally Posted by Darkl33t View Post
We get to create our own programming language either next period or next year, lofl . We'll see how hard that is. Don't think an operating system in Java would work though. Too slow and stuff.

As for the compiler, I just use the default Java compiler, as can be downloaded on the Java site. I also use the Eclipse IDE, basically an advanced error that provides some handy-dandy features, like error indications (so you can fix them themselves or have the editor fix 'em), code cleanup, code formatting, indentation fixing, stuff like that.

The Java SDK (Software Development Kit) comes with an IDE as well, NetBeans, which seems to offer some more features. But I just prefer Eclipse.

No need to pay 200 bucks for that, really . I mean, once you've done some proper Java for a month, you'll prevent the basic syntax errors from occurring, and if they do occur you just fix 'em. In fact, the language itself becomes irrelevant; it's the ideas behind it, the design, the structure, stuff like that.

You'll find out once you create a project that consists of more then 20 files / classes.
thing is before i graduate i have to take a bunch of CS courses and do a bunchprojects. like design my own operating system, my own language, a networking course, take a PASCAL elective course (yes they still teach it) a few other elective courses, an networking course like learning how AD HOC works (ill finally know how my PSP works!) and what else have you.

but i'm not planning on a 200 dollar program. just that i know a guy who does. anyway i have a free compiler called drJava i downloaded for free from some site, its pretty good. i know u can get extra stuff from SUN but to lazy to keep up wats new and all.

and i know what u mean about projects. i did this project last semester. took me a month on my own. I model a Train Reservation Ticket. Let see i had to include a Date class, which the professor gave, the Train Resercation Class, and a Tester Class. everything except making it actually Run, which i think u need a "main" method somewhere. overall it was well over 1000 lines of code and like at least 20 pages i had to print out. ill show u my source code but its long.

hey u know JavaScript or how to make applets to post on internet? i want to know how so i can post my stuff up on the internet. i'm working on designing my own game at the moment using Java, and i'd like to publish it once i'm done.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-05-2007, 03:50 PM   #12 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

Don't know Javascript, but making an applet isn't that hard. The main class just has to extend Applet, as in,

Code:
class main extends applet {

   public void init() {
     // bit 'o init code that is automatically called when the applet is opened. Your program starts here.
   }
}
The rest is just like any Java applet. You need to embed the applet using a HTML Embed tag, like so

Code:
<applet code="main.class" 
        archive="YourJavaApplet.jar"
        width="600" height="95">
Note that the archive tag is optional, you can just upload all the .class files to your site. But because those are a set of loose files, a new request will be sent whenever a new class file is needed. It's a bit faster to just use a .jar archive.

Anyways, creating an applet isn't that hard. It's just that instead of a regular class with a method "public static void main(String args[])", you extend the Applet class and create an init method.
YopY is offline   Reply With Quote
Old 02-05-2007, 06:27 PM   #13 (permalink)
Ssj7Crono
Senior Member
 
Ssj7Crono's Avatar
 
Join Date: Feb 2007
Location: New Orleans
Age: 22
Posts: 214
Rep Power: 4 Ssj7Crono is on a distinguished road
Send a message via AIM to Ssj7Crono
Default

i'll keep this in mind when i actually start publishing java on the internet. i also bought a book to refer to. just that i'm not at the point where i want to do this yet.

oh sorry to ask. i'm only in my second semester of java and still learning the stuff. but is it possible to create/incorperate animation, graphics and music through java. i'm working on a game on my spare time, but its at the early stages (its an arcade shooter for now, then i might consider an RPG later on). either i wait a couple semesters till i have the experience or just do stuff on my own.
__________________


Ssj7Crono is offline   Reply With Quote
Old 02-06-2007, 08:57 AM   #14 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

Should be possible. 2D-graphics (lines and geometric shapes) aren't a problem, check the java.awt library for that. Not sure on stuff like animated sprites and such yet, I should look into that soon. 3D graphics are certainly possible, use the JOGL (Java OpenGL) library for that. We've used them in our previous project. Nothing fancy though, but you should be able to access all the OpenGL features.

Music probably won't be a problem either, just Google for 'java music player' or something like that.
YopY is offline   Reply With Quote
Old 02-06-2007, 10:07 AM   #15 (permalink)
I AM THE CAPS MONSTER
Senior Member
 
Join Date: Feb 2007
Location: SomeWhere
Age: 16
Posts: 364
Rep Power: 4 I AM THE CAPS MONSTER is an unknown quantity at this point
Default

Quote:
Originally Posted by YopY View Post
w3schools is the suck, squared. Don't ever seriously think you'll actually learn much from there.
Uhhh useful.
I AM THE CAPS MONSTER is offline   Reply With Quote
Old 02-06-2007, 11:04 PM   #16 (permalink)
Dionysus_PSI
Member
 
Dionysus_PSI's Avatar
 
Join Date: Feb 2007
Location: Canada
Age: 23
Posts: 72
Rep Power: 4 Dionysus_PSI is on a distinguished road
Default

I seem to remember seeing how to imbed moving GIFs and also audio into JAVA when I used to sift through the SUN site way-back-when...hum, I prolly still have my account now that I think about it... anyways, I'm sure with some searching you'll find it...
I allways said when in doubt, checkout their developer's site, it has listings for everything you could possibly want to call-on, how to do it, and most importantly forums and FAQ so that you could get some help on something really easily. Saved my ass in school lol.

I would help more than that but *shrugs* I don't remember my way around that well heh, I'm sure you'll do fine. GOOD LUCK.
Dionysus_PSI is offline   Reply With Quote
Old 02-07-2007, 09:12 AM   #17 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

Woot, just got the assignments for this period in. We need to make a few games / puzzles that can solve themselves, sorta create an artificial intelligence of sorts. First two assignments are games, one being Rush Hour, some sorta slider puzzle with cars, the next one is Sudoku, a number puzzle of sorts. The third assignment is to create a program that can recognize letters (just the A and B for now).
YopY is offline   Reply With Quote
Old 02-07-2007, 07:55 PM   #18 (permalink)
Dionysus_PSI
Member
 
Dionysus_PSI's Avatar
 
Join Date: Feb 2007
Location: Canada
Age: 23
Posts: 72
Rep Power: 4 Dionysus_PSI is on a distinguished road
Default

OMG I found some of my old JAVA programs on my winME machine, wow, yeah I can hardly remember some of this stuff; action listeners, FileWriter, JPanels, Swing, etc,etc... I'll have to the IDE onto this computer so I can run these lol. I'm too lazy right now lol.
I have fun things like a simple blackjack game, A simple libary database program, a simple math program (which is pointless but I had to make it anyways), Police Database (also pointless lol), a sports score recorder (ABSOLUTLY pointless), etc...

I'm having a good laugh just remembering that I actually used to do that heh, I was going to goto university for computer sciences, lawl, and I definatly diden't. Who wants to live in a cubicle?



Cheers
Dionysus_PSI is offline   Reply With Quote
Old 02-10-2007, 01:03 PM   #19 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

That's the thing with programming, you need to keep using it in order to stay sharp . Made a GUI, file opener and buttons and everything in lightning-speed a few days ago for a smallish assignment, for great justice.

Also, I got this period's Java book, Java Threads in today. It's a book about threads in java, more specific about concurrent programming and basically have several processes run simultaneously. I've already used threads in my most recent project, where I put the XML file opener / parser in a separate thread so that the system doesn't seem to hang while it's parsing.
YopY is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0