|
I use to have the code but I am unable to trace it.
can anybody help?
|
|
|
|
|
please ask a specific a clear question (because I can't even understand what you're asking for...!
|
|
|
|
|
I want to connect to another web page, like in html "href......."
via an applet
|
|
|
|
|
Hi guys sry this isnt a programming question. I've always been wondering why JAVA is so important the development takes ages and the coding is difficult. I still dun get wht object oriented programming is. I dun want u guys to think i'm being bias against JAVA but why is this Language still Alive. Wht are the good points of using it.
And the Big question is it better to develop Applications in Visual studio or Java.
Does the google website run on java?
I'm a noob programmer seeking advice from u pro programmers.
Thank You
|
|
|
|
|
i'd be happy to argue with you about this, but for this, i'd be glad if you could type correct english.
ok, here is a short easy question to yours :
duo!@# wrote: why is this Language still Alive
why wouldn't it ?
C# is better ? certainly not.
most of what people think about java is biased because of all the noise microsofties made about it.
Java is NOT slow. you know, you can have bad programmer, and get a slow C/C++ applications too (which can lead into memory leaks if they don't take care of it). Java is also very well developped and maintained, and does not run only on windows. OH, but wait, you thought Windows was the only *real* OS ? sorry to break your dream.
most of the very large enterprise applications run on UNIX because (1) the UI is not needed and (2) it makes the plateform more stable. so, will you be able to run a C# on UNIX ? what ? mono ? crap. this is a project from the open source, not maintained by microsoft, then that will always be a lenght late.
BTW, ok, Microsoft is very good at providing development too, and programing languages, but look, Visual Studio doesn't half of the features Eclipse have.
Also, as long as there will be millions of lines of code running somewhere, the language wont be dead. Take Cobol for instance... buddy, COBOL is still alive !!!
duo!@# wrote: And the Big question is it better to develop Applications in Visual studio or Java.
that doesn't really makes sense. if you wish, you could even develop under notepad, KDevelop or vi...
that's just a development environment; it doesn't make your applicatino better.
but maybe you meant which compiler/optimizer is better ? for that, i don't know. but again, i think we can't really compare.
duo!@# wrote: Does the google website run on java?
nope. Google use a proprietary technology. not java, not .NET. something of their own which they strongly keep secret.
duo!@# wrote: I'm a noob programmer seeking advice from u pro programmers
man, you know what people say about choosing a programming language ? choose the one that fits you at best. If you find C# better, go for C#, but please don't spit at Java like those idiots who only swear by God Microsoft (moreover, most of the ones who spit at Java never wrote a java line of code of their life). if you want to play with linux one time in you life, or even better, to write portable applications, then it's probably worth it using Java. And i don't even talk about J2EE...
|
|
|
|
|
Did u mean correct english by the "u,wht". I know windows is not the only OS out there i even
researched on the
history of OS(its pretty long).But lets start from the GUI OS time line ,made by a group from Xerox.
which was later copied(oops) by Apple then by Microsoft. The current OS runs on the x86 architecture
powered by intel chips.
-------------------------------------
Then these OS giant have to allow the JAVA to run on their OS systems(something sinister going on).
Then strange enough Microsoft Office(isnt that a Windows program) can run on the MAC which was
announced a few years back.
-----------------------------------
Actually i've heard very little about unix(Linux an ofspring of UNIX) used in enterprise applications
could u enlighten me about it like what sort of applications are used.
---------------------------------
Even though there are alot of OS's out there Windows is the dominant and ya its true many ppl dun
even know that there exist other different types OS's.
---------------------------------------
I know JAVA runs on a virtual machine which i have no idea how to create(do u know how?). I got
really p i ssed off when i started using the J2SE(not sure thats the right one)IDE it was so annoying
to use,
debugging was even worst it was like a jungle, and to make matters worse the GUI codes made it even
more difficult to debug(the reason for my frustration towards JAVA). Only recently i started using
easy eclipse(which i later found by accident), excellent user interface.
---------------------------------------------
And i know why windows is so dominant over MAC because of GAMES we teens love playing cool games(most
of these game cannot even run on MAC) and which OS platform provides it, Windows. Whoa i think i'm
getting cared away by talking about OS
---------------------------------------------
modified on Friday, June 6, 2008 5:37 AM
|
|
|
|
|
duo!@# wrote: Did u mean correct english by the "u,wht".
yes. I please you to write "you" instead of "u", and in general, write the fully well-spelt english terms instead of abbreviations.
ok. For the OS stuff, it's another subject, but i'll give you some hints there. Yes, Windows is a good, user-friendly, OS. but it's not because Microsoft has its OSes on 95% of the Computers in the world that makes them almighty. I like microsoft as a software editor, but I certainly don't like they political choices.
MAC... hum, it has probably some advatages upon Windows, but from my part, I am definitely not interested to move to such as OS. dunno why. I just can't. anywayz.
duo!@# wrote: Then these OS giant have to allow the JAVA to run on their OS systems(something sinister going on).
you could avoid saying this, as you don't really master the subject.
BTW, this is somewhat off topic, but you sound a bit youngster; how old are you if you don't mind answering this ?
duo!@# wrote: Then strange enough Microsoft Office(isnt that a Windows program) can run on the MAC
this is not suprising if you think of it. What's the interest of Microsoft ? Profit. and how to make profits ? sell more software. Office is not a portable software though. don't think because you have if on MAC too, it's java related. definitely not. it was "ported" to MAC, that mean, recompiled.
and NO, Office is not a "Windows" program, it's a Microsoft Application. don't confuse.
duo!@# wrote: Actually i've heard very little about unix(Linux an ofspring of UNIX) used in enterprise applications
could u enlighten me about it like what sort of applications are used
so you still have to grow and discover the world my friend
BTW, you can't say that "Linux is an offspring of Unix". Linux comes from the Open source world, so sometimes called GNU/Linux. Unix on the other side is proprietary OS, which means that the sources are not opened, and that such OS run on a limited kind of hardware (Sun OS - Solaris - runs on Sun Servers for instance). so as the sentence says, GNU is Not Unix.
In fact, people often think tht linux comes from Unix, but that's wrong. as Unix was not open source, Linus Torvalds wrote his own OS from scratch, and didn't reuse any part of the sources of UNIX. Linux kernel is completely independant from the Unix kernel.
For the Business World now, Some applications don't have UI (servers applications, Web Services, etc.), then, don't need a graphical OS. the fact of not having a whole graphical layer in an OS makes it more heavy, and less stable (more code makes more bugs)...
duo!@# wrote: Even though there are alot of OS's out there Windows is the dominant and ya its true many ppl dun
even know that there exit different OS's.
I think those are the ones who don't care about computers, and use their PC only to send emails and play winmine...
the others sure know about the existance of MAC and Linux at least. ok, Unix is more in a profesional scope, so it doesn't care not to be very well known.
duo!@# wrote: I know JAVA runs on a virtual machine which i have no idea how to create(do u know how?).
you don't write the Wirtual Machine. you use it. Also, you have to know that a VM is using the underlying OS it is installed on. so, the code of the virtual machine on Windows is not the same as the code of the VM installed on a MAC. BUT : you don't have to care about this when coding in java, because (1) you don't write the Virtual Machine, you just use it, and (2), the Virtual Machine provides a layer for you Byte Codes to be the same on any system you run it. It's the VM which understand the intermediate language for which you compiled your java program into, which will translate that Intermediate Language into something the OS can understand.
duo!@# wrote: I got
really p i ssed off when i started using the J2SE(not sure thats the right one)IDE it was so annoying
well, you certainly didn't start on the right foot. the as I already stated, the IDE is just an environment supposed to make your code writing more nice/easy. but it doesn't optimize your code. so writing your application in Eclipse, in notepad, or even in Visual Studio is possible. what you have to matter about however is how you will have to compile your code then.
duo!@# wrote: And i know why windows is so dominant over MAC because of GAMES
don't know for MAC. as I said, i really don't care about Apple OS
|
|
|
|
|
ever since i was exposed to computer when i was young i've been facinated by them, the way they work, the things inside them that make them tick,truly amazing.
This unix thing is interesting could u elaborate more about them. What good do they provide, u stated that unix runs on certain hardware, does it run on the Intel Microprocessor. Does the UNIX OS have GUI interface like windows.
U stated that VM cant be written. Do u know how to make a VM.
Actually the MAC lepored(latest OS) is like a cool toy to play with, it doesnt even have virus
protection.
Is it possible for me as an individual to create my own compiler
And i found out how Mac air's(since we're chating about Apple i thought i'd talk about the MAc Air)
intel chip was reduced in size by 20%(they removed some components)
Thanks for ur replies,ur very knowledgable
|
|
|
|
|
duo!@# wrote: This unix thing is interesting could u elaborate more about them
any specific question ?
duo!@# wrote: u stated that unix runs on certain hardware, does it run on the Intel Microprocessor
not sure, but maybe. google might help on this.
duo!@# wrote: Does the UNIX OS have GUI interface like windows
I already answered this in my previous answer. check again.
duo!@# wrote: U stated that VM cant be written. Do u know how to make a VM
i didn't say so. I said YOU (high level programmer) doesn't have to care about how a Virtual Machine is written. so, NO, I don't know how to code such a thing, and seriously, I don't care.
duo!@# wrote: Actually the MAC lepored(latest OS) is like a cool toy to play with, it doesnt even have virus
protection.
you meant "Leopard", didn't you ? anyway, so what ?
duo!@# wrote: Is it possible for me as an individual to create my own compiler
yes, but a very hard task. you'd have to know the exact grammar of the language, the exact lexic, too, and all the specifics explain in the ISO standard. a useless pain when good compiler/linkers/optimizers already exist for free.
anyway, to sum up a bit our conversation, you don't have anything against java anymore, do you ?
|
|
|
|
|
Well honestly its still a pain in the butt programming in JAVA, but i hope there would be better improvements in the language ,and i totally hate the braces{} most of the code needs intergerPhase(not sure this is the correct syntax) but still i have to go along with it and use it.
I prefer VB its easier to debug.
Like this simple code
dim c as integer
c=textbox1.text-textbox2.text
MsgBox(c)
no semicolon i F!@#$ hate that semicolon(ok i'm calm)
If i were to replicate this code in java holy c!@#$ i have to link the GUI ID to the textbox that i wish to subtract and put it in the intergerphase(). These long winded things are wht make JAVA for me less favorable. (example)If my boss asked me to program in JAVA for apps these winding codes are very annoying,i would still have to do the job even if i'm not comfortable with it. If only i could improve them or make a better programming language then JAVA.
The GUI's(button,listbox,etc...) in java are ugly, is this by default like that or can it be improved.
About the UNIX in what way is it good for business is it possible to have a GUI UNIX OS.
|
|
|
|
|
duo!@# wrote: I prefer VB its easier to debug
ok, I think i'd better give up now
you want to hear me about VB ?
VB is crap !!! really. ok, VB.NET has improvements over VB6 and previous version, but still.
1) no semicolon man, sometimes, it's useful to be able to write 2 instructions on the same line. here, you just can't
2) no braces ok, i'm kidding a bit, but sincerely, braces let you visualize quickly the scope of a variable !
3) the optimizer. can we ever call this an optimizer ? just compare the MSIL generated by the same code, one in VB.NET, the other in C#. VB just do more things than needed.
anywayz. the semicolons and braces stuff are not Java stuff at all. if you go to C, C++, C#, javascript, or any other "wise" language, you'll have to use those.
sorry man, but i'm out of arguments against this
|
|
|
|
|
duo!@# wrote: Wht are the good points of using it.
It has a simpler object model and fewer low-level facilities than C++. Its bytecode can run on any JVM regardless of computer architecture. Its automatic memory management model spares programmers the burden of having to perform manual memory management. It does not support pointer arithmetic, thus type safety and security are guaranteed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I am getting following error while trying to run a Java appliation written in Swings using WSAD.
Fatal transport error: Connection refused: connect
2008-06-05 18:19:10,279 ERROR TFGHttpRequestHandler : Fatal transport error: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at com.freedomgroup.common.communicator.TFGHttpRequestHandler.processRequest(TFGHttpRequestHandler.java:247)
at com.freedomgroup.common.request.TFGServiceInvoker.invokeService(TFGServiceInvoker.java:154)
at com.freedomgroup.global.sysadmin.gui.externalbridge.TFGGlobalSysAdminGUIExternalBridgeImpl.getSysAdminConfigByCorp(TFGGlobalSysAdminGUIExternalBridgeImpl.java:1089)
at com.freedomgroup.global.util.TFGGlobalUtilities.getGlbPwdConfigEnable(TFGGlobalUtilities.java:123)
at com.freedomgroup.cws.gui.base.TFGCWSLogonForm.<init>(TFGCWSLogonForm.java:185)
at com.freedomgroup.cws.gui.base.TFGCWSGUIRunner.init(TFGCWSGUIRunner.java:85)
at com.freedomgroup.cws.gui.base.TFGCWSGUIRunner.main(TFGCWSGUIRunner.java:116)
I tried to use various ports to run the application to no avail. For information the default port 80 was being used by some other appliation to I had to choose a different port.
Please help its urgent.
Ashish
|
|
|
|
|
How can i determine client machine's IP using JAVA?
|
|
|
|
|
hi all
i need to determine the right designing points when implementing a voice conference what is the efficient protocol and what is the main points to design a good simple one
thanks in advance
|
|
|
|
|
I think this java forum should be divided in to following categories
1.Core java
2.Spring
3.Struts
4.Hibernate
5.EJB
6.JSF.
7.Jsp
8.Servlets
9.Web Services
10.Swing
11. Other J2EE Stuffs
this java forum requires more java experts, if any one knows java experts invite them to answer in this forums.
|
|
|
|
|
but maybe this board is badly frequented too.
look, I made several replies there, but got no answers...
|
|
|
|
|
This forum hasn't been up and running that long, it'll take a while for people to start coming here to discuss Java. Remember the rest of the code project is a fairly Microsoft centric site so alot of the top posters may not even use Java.
|
|
|
|
|
How to get client information, such as ipaddress, OS version, domain using Jsp.
If client gives a request to my web application, I need to know the OS, Ipaddress of client. How s this possible?
Plz help me...
Thanks in advance
|
|
|
|
|
Hello Everybody.
Can anyone help me openning a socket in remote by using th ip of remote host and to send it the request at port 80.
Thanks
|
|
|
|
|
Hello
You should have a look at Java tutorials-Custom Networking
[^]
for a quick and simple example:
Socket sock = new Socket("server ip", 80);
PrintWriter writer = new PrintWriter(sock.getOutputStream(),true);
writer.println(data);
sock.close();
writer.close();
data is a variable that holds your request.
|
|
|
|
|
how to open folder using bowse and saving that in a different folder using j2ee
|
|
|
|
|
i wish to have the code for shopping cart using sessions with servlets in j2ee. can anybody help me.
modified on Tuesday, May 27, 2008 6:21 AM
|
|
|
|
|
pre>
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.lang.*;
public class Purchased extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
HttpSession sessions=req.getSession();
ArrayList previousItems=(ArrayList)sessions.getAttribute("previousItems");
..................
}
}
how can i extract the elements from the previousItems arraylist to a string array?????????
|
|
|
|
|
did you bother reading the javadoc ?
the ArrayList class has the toArray()[^] method, which returns an Object[].
also, as long as you don't tell what type of elements the arraylist contains, i can't help much. please indicate what version of Java you use too.
|
|
|
|
|