Sunday, August 2, 2009

How can i set the path in java program?

I installed jdk1.5.0 update 2 and wanted to set permanent path so that i can write programs in java but when i wrote javac in command prompt answer was ' javac is not recognized as internal or external program.

How can i set the path in java program?
i'm assuming you're on windows. If you are you can include the path to this .exe in the path parameters.





From the command prompt:


set path = %path%;[path to folder containing .exe]





i'm not sure how to do it on other platforms, but it should be something similar regarding setting environment variables
Reply:I think it is good to make sure you type in the path correctly. It want to tell you about .bat file. I will automate your coding.





Open Notepad, type in:


javac C:\Program Files\Java\jdk1.6.0\bin\javac MyClass.java





save that file as "compile.bat" into your folder with your current work project.





Start another file in Notepad, type in:


java .\;C:\ProgramFiles\Java\jdk1.6.0\bin\jav... MyClass





Note, just after java the .\; that is look here first, java, this folder. The semicolon is the DOS end-of-line. The rest is the path to the java engine, a space the Java program you compiled.





Save that as "run.bat" in the same folder.





Now, you can double-click the .bat file. If it fails, make sure the path points to the bin folder inside JDK folder. It can be tricky. You see, in DOS the folders are \ (backslash). In java, in the internet, everywhere else, the path folders are "/".





If you .bat files work, great. Change your environment variable. You can then make your next bat files without the path.


javac MyJava.java





java MyJava





And finally, the NetBeans IDE does this bat file automatically for you every time you run code. NetBeans is a great editor, colors the keywords and helps you code.


How can i run a exe with java code?

I need to program in java and I want to run iexplorer and a application .

How can i run a exe with java code?
If you want to know about java, these are the people to ask.:)


http://forum.java.sun.com/forum.jspa?for...

garden sheds

How do you compile Java to native code?

I hate Jar files, classpaths and the JVM. All Java desktop programs have unacceptable startup times and huge memory footprints. I have searched for ages and found not a single no-nonsense method to compile Java to native code, so I'm seriously considering to desert to C# and .Net, just because of that. Do you know of any solution?

How do you compile Java to native code?
I think thats just a downside with Java you gotta live with if you use it.. just as the downside of C is that it would have to be compiled seperately for any different system you'd wanna run it on. im sure there are better languages out there, java was never designed to be user friendly in the first place!
Reply:lol you think that stuff is bad for java, try a language that doesnt even compile to bytecode
Reply:You can use the ANT tool to do the process of compiling java files and create a jar file. It also does some other stuff. Just check it here:








http://ant.apache.org








Good luck


Where do i get programming questions on java basics?

I am an undergraduate planning to give atest on java so please give me some info regarding where i get some programming questions

Where do i get programming questions on java basics?
Deitel has a good programming book for java including lots of programming questions.
Reply:You can also search at programming interview question and answer website like http://myitcareer.org/ .
Reply:khalid mudgal is a good book to prepare for scjp exams...


How do i save java games on my sony erricson k800i mobile phone once i have downloaded them?

i have found some mobile phone game torrents but don't know ohow to save them on my phone. Please HELP!!!!

How do i save java games on my sony erricson k800i mobile phone once i have downloaded them?
if the files are in torrent format, you need to download the actual java game using a program called bitTorrent.





then once you have the java files, transfer them to your phone with a USB cable using your phone's software. if you dont have it installed or lost the cd, you can download it from the sony erricson website.


How can I get the greatest integer in an array in Java?

I have a variety of integers in an array. How can I most easily find the greatest one among them?

How can I get the greatest integer in an array in Java?
This should get you started:





// algorithm to find and display largest item in array





int largest = numbers[0];


int pos = 1;


int SIZE = 10;





while (pos %26lt; SIZE)


{


if (numbers[pos] %26gt; largest)


{


largest = numbers[pos];


}


pos = pos + 1;


}





The variable "largest" contains the largest integer.
Reply:therss no greasted interger
Reply:int largest = arrInt[0];


int ctr = 1;


while ( ctr %26lt;= arrInt.length-1)


{


if (arrInt [ctr] %26gt; largest)


{


largest = arrInt[ctr];


}


ctr++;


}


System.out.print("The largest integer in the list is: " + largest);





//largest is the variable that will hold the largest integer.


//arrInt is your array


//arrInt.lenght determines the size of your array.
Reply:either loop through them and do:


if (number %26gt; highest) { highest = number; }





or use Array.sort() and get the last element. (much slower)

garden design

What is a good way to make a sparse matrix in java?

The matrix could be large (10,000 by 10,000), but very sparse. I plan on doing a decent amount of calculations with it. What data structure/ library should I use to do this easily?

What is a good way to make a sparse matrix in java?
There is a library to do it. Usually the code that most people write won't be as efficient as the code in libraries.





http://rs.cipr.uib.no/mtj/





http://www.ii.uib.no/forskningsgrupper/o...
Reply:The easiest way is probably just to use a Hashtable. You can use an Array of Integer values as the key if you want. Then the "size" (or maximum index values) does not matter much at all, as well as the number of dimensions.





http://java.sun.com/j2se/1.3/docs/api/ja...
Reply:Well, i suggest to use the Coordinate Method Representation, in the case that you have multiple elements per row you may use the Variant Coordinate Method Representation, but anyways try to make your work done on rows not columns, since none of the previous representations is efficient if frequent colum operations are required.





For more information about Sparse Matrices representations, see this link: http://www.cs.uml.edu/~lechner/DataModel...


How do I fix Java text errors in Yahoo Games?

Trying to play Yahoo games on my new laptop, but the text is very hard to read - squashed up and small. What do I need to adjust?


What do I need for basic Java programming?

All I know about programming involves C++, where you just need a compiler to get started. So what do I need to get started with Java? That is, what (preferably freeware) software should I look for to be able to make my own applications?


Thanks

What do I need for basic Java programming?
Its good that you already know C++.


So you won't find any difficulty on starting with JAVA.


For that you need to download Java Software from the authorised website of Sun Microsystems.


http://java.sun.com





All softwares are available free of cost....


Here you will find all the necessay softwares, tutorials, documentations, discussion forums and everything about JAVA





If you need more help, you can contact me at chetan_9118@yahoo.com





I am also working on JAVA platform..
Reply:Chetan has you on the right track, and you should have no problem with Java if you know C++.





Chetan has already answered your question, I'm just thought I would throw in some comments. The creators of Java were certainly thinking of the C++ programmers when they created it. It is very similar. The nice thing about Java is that the compiler IDE everything is free. I like the NetBeans IDE myself. You can even get the NetBean IDE with the 1.6 (1.6 == 6.0) JDK as a bundled download (Java Development Kit, ie the compiler and libraries).





Note you will see Java SE (Standard Edition, desktop apps), Java ME (Mobile Edition for phones and such), one for Web application, and Web backends, databases. Tons all from Sun.


Sun makes excellent software and machines.





http://java.sun.com/javase/downloads/ind...


What is the importance of learning Java in Electrical & Electronics Engineering?

I am a student of EEE. I want to go to communication sector in higher studies.


My friend told me about learning Java.


I want your opinion if you know the importance.

What is the importance of learning Java in Electrical %26amp; Electronics Engineering?
actually java is not the thing for eee. its better for software development, strictly object oriented, has support for state of the art development methods and patterns. main feature is that -- java is platform independent. as a eee student you will need low level access to the computer --- java will not help you much, if you are looking from academic side.





for a quick (10 min) intro, how java works, read this :


http://www.geocities.com/hellopopel/J10M...
Reply:If you have some knowledge in C and C++, tou should IMHO make yourself more proficient in those, and not waste time on Java unless it realy interests you - as an electrical engineer, you should probably have some basic understanding of programming languages, but you probably have more important things to study that are closer to your field of expertise.
Reply:Electrical engineers are also asked to create or write softwares for the hardwares that they develop using high level programming languages, and java is one. jave is one of the most commonly used programming language to implement business applications to day and even with every commercial lines. with the use of java, it would probably more easier to write in code the algorithms and logic that you would want to implement in your hardware design for the chips??????? im not sure though if you are really into creating software applications for the hardware or the chips you create....
Reply:It depends on what you want to get into in the communication field. If you are thinking of doing embedded applications then C or C++ would be better. If you are just going to do hardware engineering, then you dont really have to know a language, but understanding microprocessor interfaces are very important, so knowing the basics of programming helps.
Reply:I think C++ %26amp; java is the besic consept in a program so .........





it is the very very important four u
Reply:Java in some applications, such as on the desktop, can be totally unnessesary because of it's JIT system (compile and run when user opens). However, I do remember that there are a few Java firmwares out there for lego robotics (RCX). Otherwise, it may have been suggested to you because it does compile at runtime and therefore is cross platform.





Lastly it may be because Java can handle complexities, but then again... I have not programmed Java before so I won't know about how efficient it is.

flower pictures

What is wrong with my Java and yahoo pool?

I use to play Yahoo pool everyday but I stoped after a while and got McAfee virus thing and now I cant play pool. I dont know if that is whats stoping it from working but it seems to have happend around the sametime. When I go to play a lil box pops up that says Several Java virtual machines running at the same process caused an error. I tried downloading java online thing but it didnt work. I even tried uninstaling all java programs off of my computer and downloading them again but that didnt work. Does anyone have any clue n how to help me? If not thanx for tryn.

What is wrong with my Java and yahoo pool?
There is like 18 kinds of java out now you may have to go to java.com and download a new package I had to do it to get some of my other chat programs to work right again


Can you give me a Java console that find a specific word in sentence each line from file?

For example: I need to find a "Wednesday" word in each sentence by line by line.





Go ballet class next Wednesday.


On the Wednesday is going to swim class.





Then it will show the output:


Wednesday : ballet class


Wednesday : swim class





I am going to figure out in Java console to read from a file. I know already to make input/file codes.

Can you give me a Java console that find a specific word in sentence each line from file?
WHILE THE FILE IS NOT EMPTY


read a line from the file


use the correct string function to find "Wednesday" in the line


if found run the function to find the name of the class


Where can I find a good java ftp client for a webpage?

I need a very easy to use java ftp client in order to make uploads and downloads from a webpage.





It needs to be very easy and straightforward to use for a layman and implement by me, the designer.





I'd like something I can try right now so it being FREE would be best, but if it does require money, I need assurance that it actually works effectively and is worth the money.





So, experienced answers only please.





Thank you,


G

Where can I find a good java ftp client for a webpage?
you can use the fireFTP for firefox.





http://fireftp.mozdev.org/


How do I create a Java method which creates the following pattern?

I'd like to create a Java methid to printout, for a given K%26gt;0, the followinng pattern:





The pattern is for K=3.





0 0 0 1 1 1


0 0 0 1 1 1


0 0 0 1 1 1


1 1 1 0 0 0


1 1 1 0 0 0


1 1 1 0 0 0

How do I create a Java method which creates the following pattern?
Does not look easy. May be you can contact a java expert at websites like http://askexpert.info/

credit cards

Does anyone know a good website to get a free download Java Eclipse?

I'm trying to find a download for Java Eclipse, preferably version 3.2, since that's the one I've worked with the most and am the most comftorable with. Thanks for the help!

Does anyone know a good website to get a free download Java Eclipse?
Anything wrong with http://www.eclipse.org/ ?
Reply:http://www.eclipse.org/downloads/


What is a internet browser java script error?

On my computer I use the sbc dsl internet browser and it will randomly put up a 'java script error'. The computer then freezes and wont let me on the internet anymore. Why is it doing this and how can i fix it?

What is a internet browser java script error?
Those error messages normally don't have anything to do with your computer or internet service. It usually means that whatever website you're trying to access has problems with its coding. So it's not something you can correct, it would have to be corrected by the people who did the programming for that site. If you can access the site you could look for a "contact us" or "support" link and bring the problem to their attention. If you're using IE7 the problem is even more wide-spread because IE7 isn't recognizing a lot of the older programs.





http://www.ie-vista.com/sites.html





plrr

brandon flowers

How would you position a button in an applet using Java?

Basically, Im trying to make something similar to a calculator with a screen and keypad below it.

How would you position a button in an applet using Java?
The code for positioning a button in ur page is like...


keysArray = new Button[17];


(where 17 is the specified-width, okay?)


Better I'm giving u the whole code for calculator (using Applet), so that u can get the whole points of view...





import java.awt.*;


import java.awt.event.*;


import java.applet.*;





public class CalculatorApplet extends Applet implements ActionListener


{


private Button keysArray[];


private Panel keyPad;


private TextField lcdField;


private double result;


private boolean first;


private boolean foundKey;


static boolean clearText;


private int prevOperator;





public void init()


{


lcdField = new TextField(20);


keyPad = new Panel ();


keysArray = new Button[17];


result = 0.0;


prevOperator = 0;


first = true;


clearText = true;





//Set frame layout manager setLayout(new BorderLayout());





lcdField.setEditable(false);





//Create buttons


for (int i = 0; i %26lt;=9; i++)


keysArray[i] = new Button(String.valueOf(i));


keysArray[10] = new Button("/");


keysArray[11] = new Button("*");


keysArray[12] = new Button("-");


keysArray[13] = new Button("+");


keysArray[14] = new Button("=");


keysArray[15] = new Button(".");


keysArray[16] = new Button("CLR");





//Set panel layout manager


keyPad.setLayout(new GridLayout (4,4));





//Add button to keyPad panel


for (int i = 7; i %26lt;=10; i++) //adds Button 7,8,9, and divide to Panel


keyPad.add(keysArray[i]);





for (int i = 4; i %26lt;6; i++) //adds buttons 4,5,6 to Panel


keyPad.add(keysArray[i]);





keyPad.add(keysArray[11]); //adds multiply button to Panel





for (int i = 1; i %26lt;= 3;i++) //adds buttons 1,2 and 3 to Panel


keyPad.add(keysArray[i]);





keyPad.add(keysArray[12]);//adds minus button to Panel





keyPad.add(keysArray[0]); //adds 0 key to Panel





for (int i = 15; i %26gt;=13; i--)


keyPad.add(keysArray[i]); //adds decimal point, equal, and addition keys Panel





add(lcdField, BorderLayout.NORTH); //adds text field to top of Frame


add(keyPad, BorderLayout.CENTER); //adds Panel to center of Frame


add(keysArray[16], BorderLayout.EAST); //adds Clear key to right side of applet





for(int i = 0; i %26lt; keysArray.length; i++)


keysArray[i].addActionListener(this);


}





public void actionPerformed(ActionEvent e)


{


foundKey = false;





//Search for the key pressed


for (int i = 0; i %26lt; keysArray.length %26amp;%26amp; !foundKey; i++)


if(e.getSource() == keysArray[i]) //key match found


{


foundKey = true;


switch(i)


{


case 0: case 1: case 2: case 3: case 4: //number buttons


case 5: case 6: case 7: case 8: case 9: //0-9


case 15:


if (clearText)


{


lcdField.setText("");


clearText = false;


}


lcdField.setText(lcdField.getText() +


keysArray[i].getLabel());


break;





case 10:// divide button


case 11:// multiply button


case 12:// minus button


case 13:// plus button


case 14:// equal button


clearText = true;


if (first) // First operand


{


if(lcdField.getText().length()==0)


result = 0.0;


else


result = Double.valueOf(lcdField.getText()).doubl...





first = false;


prevOperator = i; //save previous operator


}


else //second operand already enter, so calculator total


{


switch(prevOperator)


{


case 10: //divide Button


result /= Double.valueOf(lcdField.getText()).


doubleValue();


break;


case 11: //multiply Button


result *= Double.valueOf(lcdField.getText()).


doubleValue();


break;


case 12: //minus button


result -= Double.valueOf(lcdField.getText()).


doubleValue();


break;


case 13: //plus button


result += Double.valueOf(lcdField.getText()).


doubleValue();


break;


}


lcdField.setText(Double.toString(result)...


if (i==14)//equal button


first = true;


else


prevOperator = i; //save previous opetator


}


break;





case 16://Clear button


clearText = true;


first = true;


lcdField.setText("");


result = 0.0;


prevOperator = 0;


break;


}


}


}


}


Can you give me a Java console that find a specific word in sentence each line from file?

Question Details: For example: I need to find a "Wednesday" word in each sentence by line by line.





Go ballet class next Wednesday.


On the Wednesday is going to swim class.





Then it will show the output:


Wednesday : ballet class


Wednesday : swim class





I am going to figure out in Java console to read from a file. I know already to make input/file codes.

Can you give me a Java console that find a specific word in sentence each line from file?
Take a look at the methods on the String object. In particular, consider using the indexOf(String str) method inside a conditional statement. Also keep in mind that a sentence can contain the work you are searching on multiple times so you may want to look at using the substring(int beginIndex) method to temporarily walk through the string so you can find the duplicates.


How can I drop a team in fantasy baseball after the draft.didn't get to draft problem w/java that day?

the day of the draft I had a problem with java.by the time In figured out what was going on the draft was in the 20th round.I tried to delete the team but the fantasy leagues reply was that there is a problem and I cannot do that.

How can I drop a team in fantasy baseball after the draft.didn't get to draft problem w/java that day?
At worst, you drafted a team based on default rankings.





Why not just stick it out. What do you have to lose??


If you truly love fantasy baseball, don't let something small like not being able to add your personal touch to the team stop you.
Reply:You can't drop the team now. They won't allow it because it would mess up the league. You can still trade and still have a shot of doing well. You may have a better team than you think.
Reply:In my experience you can not drop out after the draft. You could always just not compete, but that would be a disservice to the other teams in the league.





Several years ago the telephone company decided to work on the lines in my area in the middle of the draft and I lost the connection. I suspect that most of us have experienced something like that. A good reason to prerank.





As the previous reply stated, consider the mishap a challenge and do your best. Who knows. You might do very well.
Reply:Do you have 4 teams already in your Yahoo ID? You get 4 teams in each ID. If you want 8 teams, you need 2 different Yahoo ID's. Is this a money league team? Do you do money leagues? I have a 12 team $50- league with 2 spots available.There are only 2 spots left in my baseball MONEY league. Good luck you you in all of your money leagues.





League fee $50- (Due ASAP)


100% paid to top 3 at playoffs end.





Payoffs


1st $300-


2nd $200-


3rd $100-





League ID#: 53153


League Name: 2008 MONEY LEAGUE


Password: pitcher





Draft Type: Live Draft


Draft Time: Sun Mar 16 4:30pm PDT


Max Teams: 12


Scoring Type: Head-to-Head





Roster Positions: C, 1B, 2B, 3B, SS, LF, CF, RF, Util, SP, RP, RP, RP, RP, BN, BN, BN, BN, BN, BN, BN, BN, BN, BN, BN, DL, DL





Stat Categories: R, 1B, 2B, 3B, HR, RBI, SB, BB, K, A, E, AVG, W, L, CG, SHO, SV, K, HLD, ERA, WHIP, K/BB, BSV


Can any ane adv new web proxies which are enabled with java scripts?

This summary is not available. Please click here to view the post.

Does anyone have information about James Gosling, the inventor of Java programming?

I need some information about James Gosling, who invented the Java programming language.


Or, you could give me a famous candian person other than Celine Dion, Jim Carey, and that hockey guy. Thanks

Does anyone have information about James Gosling, the inventor of Java programming?
Dr. James Gosling , Ph.DJames Gosling, Ph.D (born May 19, 1955 near Calgary, Alberta, Canada) is a famous software developer, best known as the father of the Java programming language.








Education and career


In 1977, James Gosling received a B.Sc in Computer Science from the University of Calgary. In 1983, he earned a Ph.D in Computer Science from Carnegie Mellon University. While working towards his doctorate, Gosling created the original version of the Emacs text editor for UNIX (gosmacs), and before joining Sun Microsystems he built a multi-processor version of UNIX, as well as several compilers and mail systems.





Since 1984, Gosling has been with Sun Microsystems, and is generally known best as the father of the Java programming language. Gosling is currently (as of 2006) Sun's CTO of the developer product group.








Contributions


He is generally credited as the inventor of the Java programming language in 1994. He did the original design of Java and implemented its original compiler and virtual machine. For this achievement he was elected to the United States National Academy of Engineering. He has also made major contributions to several other software systems, such as NeWS and Gosling Emacs. He also cowrote the bundle program that you learn to make a version of in Brian Kernighan and Rob Pike's book The Unix Programming Environment.
Reply:U ARE AWESOME KEEP IT UP Report It

Reply:wikipedia!!


Which books should I follow to learn Java on my own?

I want to learn Java but I am not going to attend any classes for that. Which books should I follow?


One person recommended me 'Problem Solving with Java', 2nd Edition, by Elliot B. Koffman and Ursula Woltz


Are there some other books also which are worth following?

Which books should I follow to learn Java on my own?
Begginning Programming with Java, by Barry Burd.


It helped me a lot.
Reply:In the last 2 years I have worked with the Java language as part of my undergraduate degree. In this time I have never read a full book.





I don't know if you are familiar with the Problem-Based Learning (PBL) style, but if you are anything like me then PBL is a really good way. Basically I have looked at a few online resources to get a grip on Java and then jumped straight in. I meet a problem and then I look it up on the internet. I haven't paid a single penny on a book to learn it, but I would recommend some reading before you start.





I have recently completed my final year studies at university and I will include my main sources in the box below. I should say that when you learn how to read the java.sun.com tutorials then the world's your oyster, but until then have a look at some of the links below.
Reply:try it from


http://java3.blogspot.com/


http://j2eeqa.blogspot.com/


What are the differences and similarities between Java and AS3?

i saw some of the syntax os AS3 they are kind of similar to Java.


Are they some what alike?


is it easy to learn AS3 if you already know Java?





Thanks!

What are the differences and similarities between Java and AS3?
ActionScript was released into the public domain and is currently being debated as the ECMA specification. ActionScript is more akin to javascript than to java.





ECMA, if it comes to be, and if Microsoft can accommodate it, will make for the first time, a universal scripting mechanism for all web technologies.





Java, also, has been released into the public domain with the hope for wider adoption. Java is capable of running cross-platform. ActionScript is not supported on the Linux platform. Java is supported on Linux and others. Java also incorporates the ECMA script standard as part of the java API. java is compiled bytecode.





As far as learning AS3. It is the same as javascript with a little stronger data typing. AS3 is part of Flash and the strength of programming AS3 comes from the graphical timeline in the authoring mode of Flash.


How is the max value that you can set with the -Xmx param for heap size of the java jvm determined?

I would like to instantiate the java jvm with a larger max heap size. I use the -Xmx parameter to do so. I have discovered though that the value you can specify here differs from box to box. I assume its related to the physical and swap memory. Is there a formula that can be applied to determine the max value? Can you get around physical memory limitations by instructing the jvm to utilize swap memory (I am using linux)

How is the max value that you can set with the -Xmx param for heap size of the java jvm determined?
According to Sun's documentation, the defaults are set as follows:





If not otherwise set on the command line, the sizes of the initial heap and maximum heap are calculated based on the size of the physical memory. If phys_mem is the size of the physical memory on the platform, the initial heap size will be set to phys_mem / DefaultInitialRAMFraction. DefaultInitialRAMFraction is a command line option with a default value of 64. Similarly the maximum heap size will be set to phys_mem / DefaultMaxRAM. DefaultMaxRAMFraction has a default value of 4.





Anyways there is no way to utilize swap memory. All heap increases use methods that try and avoid swapping.


Also heap increases and decreases can be controlled by the


-XX:MinHeapFreeRatio and -XX:MaxHeapFreeRatio options


which looks at the ratio of free space to object space and makes sure that it lies between these option values. Defaults


are 40% and 70% for above ratios respectively.





Otherwise you can try to use the -XX:+AggressiveHeap option to allow the jvm to push the heap to the limit, again unfortunately limited by the physical memory. But key issue is setting max values will also affect other applications running on the server so setting the correct value will depend on what the required service level is.

sd cards

How to allow Java Script in Mozilla Firefox?

Would anyone please tell me how to do it in Firefox? Thanks for any help!

How to allow Java Script in Mozilla Firefox?
Click on Tools, Options,





then click on the Content icon and click on the checkbox labelled Enable Javascript
Reply:go to mozilla tools%26gt; then contents and you can


I want to write some small programs to automate tasks between Excel and Access. Should I use VB or Java?

I do a ridiculous amount of running queries in Access, copying and pasting data into specific cell ranges in new date-named worksheets in the same workbooks every week. To add to the issues, I pull data into my Access database using ODBC-connected tables that require me to login to the server with the same login info using the Linked Table Manager everytime I load my Access. The copying and pasting to specific cell ranges in specific worksheets in one workbook. I need to automate as much of this as possible. I already know Java and know that Java could simplify a lot of the repetitive tasks, using a good API. However, I want to avoid having to go through downloading the files, programs, etc. necessary to run Java apps on my work computer, as I want other co-workers to be able to utilize the same program that I come up with on their computers without a lot of hassle. I don't know VB and am still unclear if this is something I should learn that will work similar to Java.

I want to write some small programs to automate tasks between Excel and Access. Should I use VB or Java?
It depends on what database driver the ODBC connected tables are to. If it is a MS product (more likely the case), then VB and VBA are what I would recommend. The libraries would be easily available in VB to drive and automate applications to connect in this fashion.





If you find it is non Microsoft, then I would use Java, which means you will need to potentially write your own application to perform the functions stated. Java does not really easily integrate into MS applications
Reply:Use Microsoft Acess and vba.


if you want total control over what gets exported to excel, use vba code. Include the Microsoft Excel Object Library in References so you are able to read and write excel files in a module.





heres a code snip that might get you started:


ex:


Dim xlApp As Excel.Application


Dim xlBook As Excel.Workbook


Dim xlSheet As Excel.Worksheet





' Export a recordset to an Excel file


' mb - November, 2001





Dim CName As String


Dim X As Integer


Dim c As Column


Dim fld As Field





rs.MoveLast


maxrows = rs.RecordCount


rs.MoveFirst


myrow = 1


mycol = 1


Screen.MousePointer = 11





' load Excel


Set xlApp = New Excel.Application


Set xlBook = xlApp.Workbooks.Add


Set xlSheet = xlBook.Worksheets.Add


xlSheet.Name = WkBookName





' Output the field names


maxcol = rs.Fields.Count


For mycol = 0 To maxcol - 1


Set fld = rs.Fields(mycol)


xlSheet.Cells(myrow, mycol + 1).Value = fld.Name


Next





' Output the data


myrow = 1


(remainder of code is not shown)


You'll need to just bump through each record in your recordset (rs), retrieve the field data, and write it to the excel file.








Or -


Use the "TransferSpreadsheet method " in ms access if you just want to move ms access query results to Excel with no checks and balalces..
Reply:Between Microsoft products, your best bet will be to use VBA, VB, or C#. You can use Java working with a Java to COM bridging framework (JIntegra for example) but it definitely adds a layer of complexity. Unfortunately the errors thrown in the Java/COM bridging are not very useful (at least based on my experience).
Reply:I would strongly suggest using VB, simply because both Access and Excel are Microsoft products, and there are several libraries included with VB (.Net anyway) that allow for fairly easy linking to both the Access and Excel object models. If you know Java, you should be able to pick up VB quite quickly. It is more literal than Java, more wordy, and if anything, easier to program in. You might also consider putting the code directly in Access, in the VBA behind the forms and reports. Most often, in industry, that is the method I have seen used for working between Excel and Access. By the way - if you are having to login to the db every time you access the linked tables, it sounds like they may have been linked without the "remember password" box checked. When setting up the linked tables, there is screen that comes up when setting the ODBC connection that has a small checkbox in the bottom left side that says "remember password" or something like that. If you go back through the process, and check that box, you shouln't have to login every time. I experienced the same problem, and found it easier to spend the time recreating the links than to have to login every time. Good luck - if you need any assistance, I'd be glad to help : )
Reply:Hi,


this should be easy just use "VBA" in your excel file, search the help files for using "ADO" links, which will let you connect to other programs remotely and select what data you want and paste it where you want as well all for you.. hope this all helps you. a good book is MS Office "Inside out" if you need more help.
Reply:Hey, i'd use vb in this example. Keep it nice and simple and you cant go wrong.


Why does the Java applet start running in my bar where the clock is when I just go to a website?

Any website that I go to, it does this.

Why does the Java applet start running in my bar where the clock is when I just go to a website?
Your browser is set up to load the java applet or the java quick launch. If you stop it, some pages may not work. It the settings you should be able to set it to load only when needed or at least turn off the icon in the system tray
Reply:Normally, when you go to any website that has java running (so basically you need java in order to make the webpage running properly in your PC), if you have java, it will run automatically. it's normal, don't turn it off.
Reply:Some web sites require a much more powerful version of Java than the basic version supplied with Windows. The applet will appear when a site is accessing JRE (Java Runtime Edition) or JVM (Java Virtual Machine.). This is normal. It means you have the most powerful version of Java installed on your computer, which is good.


I stink at java programming, should i still major in computer science?

i just took my first computer science course, in introduction to java. ill admit that im absolutely terrible. ill probably get a C+ in the course, especially after that last test.





anyway, would it be smart to just change majors, or should i stick with it?

I stink at java programming, should i still major in computer science?
Stick with it , It can seem overwhelming at first but give it some more time.
Reply:What is the reason you got a C+ in the


Introduction to JAVA ?





If you find it difficult to understand the logic


and language structure then its time for you


to move to another field.





But if you can comprehend JAVA given


more study time and better learning


materials ( books / references ) then


stay with the course.
Reply:I would have thought you would have received a C++ or C#. Boo! Yeah, I know...bad joke.





I have a B.A. in Computer Science and I find it odd that your first CS course is in Java. That is the wrong approach. You should learn C+ or C++ first, as this is the basis of most of today's computer languages including Java. If you are passionate and interested in becoming a programmer, I suggest continue with the major. But, I would strongly suggest taking a more basic course and speaking with a counselor or someone from the CS department.





My first CS class was programming in C. Then, I moved to C++, Postscript, Java, Javascript and ASP.

plants

How can I get my browser to turn on java so I can play pogo games again?

I have reinstalled java many times and made sure microsoft was checked on advanced also scripting what else can I do

How can I get my browser to turn on java so I can play pogo games again?
I am going to give you most of the help info i have on this lots of reading but maybe it will help you out, and if all else fail go to your pogo account click the help button and then contact the pogo tech department with your problem.





Clearing your browser cache is not only good regular maintenance for your computer; it can also fix many common issues with Pogo games when they won't load or close mysteriously mid-game, which can commonly happen if the files in your browser cache get corrupted or just stop working. For instructions on how to do this for each browser supported by Pogo.com, please click the link that matches (or most closely matches) the browser you're using. Please follow the 'clear Java cache' instructions as well; that way, you know your browser is starting on a completely clean slate. (Think of it as changing the oil in your car.)





As a final note, even though we list older versions of some browsers here, if you're using an older version of your browser, we strongly recommend visiting the website of the browser's provider (Microsoft for Internet Explorer, etc.) and downloading the very latest version before you do anything else.





Clearing Cache: Internet Explorer 7.x





Here's how to clear your cache with Internet Explorer 7.x browsers:





Launch your Internet Explorer browser.


Click Tools on the menu toolbar at the top of the browser.


Select Internet Options from the drop-down menu.


Click the Delete... button in the Browsing History section.


Click the Delete Files... button in the Temporary Internet Files section.


Click the Close button on the Delete Browsing History screen.


Click OK on the Internet Options screen.


Close all browser windows and restart Internet Explorer.


Please be sure to clear your Java cache as well!





Clearing Cache: Internet Explorer 6.x and 5.x





Here's how to clear your cache with Internet Explorer 6.x browsers:





Launch your Internet Explorer browser.


Click Tools on the menu toolbar at the top of the browser.


Select Internet Options from the drop-down menu.


Click the Delete Cookies button.


Click the Delete Files button.


Click OK.


Close your browser and restart Internet Explorer.


Please be sure to clear your Java cache as well!





Clearing Cache: Firefox 2.0





Here's how to clear your cache in Mozilla Firefox (version 2.0x):





Click Tools from the main menu at the top of the Firefox window.


Select Options (the Options window will appear).


Click the Privacy button on the top left of the window.


Click the Clear Now... button in the Private Data section.


Be sure there is a check mark in the 'Cache' check box. (Note: For a more complete browser maintenance, you may want to check all of the boxes.)


Click the Clear Private Date Now button.


Once your cursor reverts from the hourglass to the normal cursor, click OK at the bottom of the Options window.


Now, close all Firefox windows and restart Firefox.


Please be sure to clear your Java cache as well!





Clearing Cache: Firefox 1.5





Here's how to clear your cache in Mozilla Firefox (version 1.5):





Click Tools from the main menu at the top of the Firefox window.


Select Options. (The Options window will appear)


Click on the Privacy button on the top left of the window.


Click the Cache tab.


Click the 'Clear Cache Now' button. (Your computer may take a minute or two to delete everything.)


Once your cursor reverts from the hourglass to the normal cursor, click OK at the bottom of the Options window.


Now, close all Firefox windows and restart Firefox.


Please be sure to clear your Java cache as well!





Clearing Cache: AOL 9 SE





Here's how to clear your cache with AOL 9 SE:





Click the Settings icon.


Click Internet [Web] Options.


On the right (under Related Settings), click on Internet Explorer Settings.


Under Temporary Internet Files, click 'Delete Files'.


Click OK.


Close the AOL Browser Settings window.


Please be sure to clear your Java cache as well!





Clearing Cache: AOL 9





Here's how to clear your cache with AOL 9:





Click the Settings icon.


Under Essentials, click Internet Properties.


Under Temporary Internet Files, click 'Delete Files'.


Click OK.


Close the AOL Settings Window.


Please be sure to clear your Java cache as well!





Clearing Cache: AOL 7 and AOL 8





Here's how to clear your cache with AOL 7 or AOL 8:





Click the aqua-colored Settings box at the top of the AOL window.


Click Preferences from the pop-up menu.


In the Preferences window, click on Internet Properties (WWW). (The AOL Internet Properties window will pop-up.)


Click the Delete Files... button under Temporary Internet Files.


Click OK when it asks "Delete all files in the Temporary Internet folder?". (You don't need to check the box.)


When it's done deleting (your cursor will return to normal), click OK at the bottom of that window.


Close the Preferences Window.


Please be sure to clear your Java cache as well!





Clearing Cache: Safari





Here's how to clear your browser cache in the Safari browser.





Launch Safari.


Click the Safari menu and select Empty Cache.


Click the Empty button in the dialog that appears to confirm the deletion of your cache.


Close all instances of Safari.


Launch a new Safari browser window and try to play again.


Please be sure to clear your Java cache as well!





How do I clear my Java cache?





In order to delete the Java cache and objects, which is different from the browser cache and temporary Internet files; using the latest version of Sun Java 1.5.x, please follow these steps if you are also using Windows. If you are not sure if you have the latest version of Sun Java or not, please visit our article about checking for the Java plugin and follow the instructions.





Once you are sure you are using the latest version of Sun Java, please follow these instructions to delete the Java cache and objects if you're using Windows.





Click the following things in order: Start -%26gt; Control Panel -%26gt; Java -%26gt; 'General' tab.


Click the Delete Files button located in the Temporary Internet Files section.


Make sure all three boxes are selected, and click OK.


This should probably be done whenever you encounter a problem with the way a game is functioning. Restarting your computer after doing so can also help the performance of the game.





How do I install or update Java?





If you've never installed Java on your computer, you'll need to do so in order to play Pogo games. It's not uncommon for new computers (particularly those with Windows XP) to ship without any form of Java installed, so don't panic if you don't have it. Java is a free download and is easy to install. Also, updating it follows the same steps, so these are directions for that, as well.





Below you will find two sets of instructions. One is for uninstalling Sun Java and one is for installing Sun Java. Following these processes should help you resolve any problems you are encountering with Java, such as getting errors saying something like "Java Not Found or Not Working". The instructions below are primarily for Windows users. If you are using Mac OS X, please go to http://www.apple.com/java for assistance with uninstalling and installing Sun Java. If you are using any other operating system, such as a version of Linux, please refer to the manufacturer's website for assistance with uninstalling and installing Java.








Uninstalling Sun Java





If you already have Sun Java installed, or if you are not sure it is installed, try following these steps listed below. If you are unable to find the Java icon in the Control Panel as indicated, then go ahead and jump down to the second set of instructions for installing the latest version of Sun Java.








Click the Start button on the Windows Taskbar.


Select Run.


In the text box, type 'control' (without the quotes) and click OK.


Double-click the Add or Remove Programs icon.


Scroll down to 'Java Runtime Environment' or 'J2SE Runtime Environment 5.0' and uninstall all instances that you see.


Scroll down to 'Java Web Start' and uninstall it as well.


Restart your computer. To get back to these instructions to install Sun Java, come back to the Help Pages and do a search for "Installing Sun Java".


Installing or re-installing Sun Java








Go to the Sun Java Download page at www.java.com.


The steps may vary as Sun updates this page periodically.


Click the Download button that is usually on the right side of the page.


Click the Begin Download button.


Next you may encounter a warning message that instructs you on 'Installing the ActiveX Control'. Please follow the instruction to allow the installation.


If you see a Security Warning for installing the J2SE Runtime Environment, click Install.


Next you will be prompted to read and accept the license agreement. After reading the agreement click next to 'I accept...' and click Next.


When prompted, choose 'Typical' installation, and click Next.


When the installation is complete, you may be asked to restart your computer now or later. Choose to restart it now.


After your computer has restarted and you are online, go back and try to play again.


If you still have the same problems with the games after uninstalling and reinstalling the plug-in, please click on the 'Contact Us ' tab at the top of this page to request help via e-mail from one of our Game Support Representatives. Make sure to let us know that you already tried these steps, so that we can help you from there.





I got a "Java not found or not working" error.





When you first load a game, our servers run a 'check' on your Java to make sure it's working. A 'Java Not installed or not working' error usually means that something got messed up with your Java plugin or Virtual Machine and it's no longer functioning properly. If your Java's not working, the games won't work.





If you're getting this error, you should first try playing several different games. Here are some suggestions:





Word Whomp


Ali-Baba Slots


Cribbage (play with robots so you can leave if need be)


Ez-Win Bingo





If you get this error in all or most of the games, you should reinstall or upgrade your Java software.





If you only get this error in one game or a few games, you probably just need to re-download those games. Try clearing out your browser cache and Java cache as well, then completely close and re-open your browser and try again.





If you get this error and are using Internet Explorer 7, you may need to enable Java in IE 7.





'Java not found or not working' errors when using Sun Java and IE 7





If you recently updated to Internet Explorer 7 (IE 7.0) and are now experiencing 'Java Not Found or Not Working' errors, it is typically due to Java being disabled in the browser. You can manually enable Java using the steps below:





Open an Internet Explorer 7 browser window.


Click the Tools menu in the upper right of the window.


Click Manage Add-Ons and select Enable and Disable Add-Ons.


Click Sun Java Console.


Make sure the radio button at the bottom is set to Enable.


Click OK.


Close the window.


Open a new Internet Explorer 7 browser window and go to the Pogo website.


Launch a Pogo game.


Try one that you are sure was not previously working so you can test it.


Java should now be fully enabled and Pogo games should work correctly.





How do I make sure the Sun Java 2 plug in is enabled and working?





To check to see if you already have Sun Java installed and enabled, please follow these instructions.





Click the Start button on the Windows Taskbar.


Select Run.


Type 'control' (without the quotes) in the text field box and click OK.


Once you are viewing the Control Panel, there is panel to the left that either says 'Switch to Classic View' or 'Switch to Category View'. If it says 'Switch to Classic View' then click it. If it says 'Switch to Category View' then you are where you want to be. To the right of where it says 'Switch to Category View' you will see a list of items, the first item listed is most likely 'Accessibility Options'. Scroll down the list until you see 'Java' and double click it so the Java Control Panel appears.


In the Java Control Panel, click the Advanced tab. If you don't see the Advanced tab, you have an older version of Sun Java. To find out how to update to the latest version, please click here. (Once you've read the article, just click the Back button on your browser to come back here.) Once you do this, Sun Java will automatically be enabled.


Once you are in the 'Advanced' you will want to click the plus sign (+) next to where it says 'Applet tag support'.


There you will see a check box next to 'Internet Explorer' and/or 'Mozilla Netscape'. If you have Internet Explorer then make sure the box next to it is checked. If you have a Mozilla browser, like Netscape or Firefox, then make sure the check box next to the 'Mozilla Netscape' option is checked as well.


Then click OK at the bottom of the Java Control Panel window and close all of your browser windows.


Now open up your browser, go back to Pogo, and try to play again.





How do I reinstall the Sun Java 2 plug in, if I already have it?





Below you will find two sets of instructions. One is for uninstalling Sun Java and one is for installing Sun Java. Following these processes should help you resolve any problems you are encountering with Java, such as getting errors saying something like "Java Not Found or Not Working".





The instructions below are primarily for Windows users. If you are using Mac OS X, please go to http://www.apple.com/java for assistance with uninstalling and installing Sun Java. If you are using any other operating system, such as a version of Linux, please refer to the manufacturer's website for assistance with uninstalling and installing Java.





Uninstalling Sun Java





If you already have Sun Java installed or are not sure try following these steps. If you are not able to find the Java icon in the Control Panel as indicated then go ahead and jump down to the second set of instructions for installing the latest version of Sun Java.








Click the Start button on the Windows Taskbar.


Select Run.


Type 'control' (without the quotes) in the text box field and click OK.


Double-click Add or Remove Programs.


Scroll down to 'Java Runtime Environment' or 'J2SE Runtime Environment 5.0' and uninstall all instances that you see.


Scroll down to 'Java Web Start', and uninstall it as well.


Restart your computer. To get back to these instructions to install Sun Java, come back to the Help Pages and do a search for 'Installing Sun Java'.


Installing or re-installing Sun Java








Go to the Sun Java Download page at www.java.com.


From here, the steps may vary as Sun updates this page periodically.


Click the Download button that is usually on the right side of the page.


Now you may see a Begin Download button. Click the button.


Next you may encounter a warning message that instructs you regarding Installing the ActiveX Control. Please follow the instructions to allow the installation.


You may see a Security Warning for installing the J2SE Runtime Environment. Click Install.


You will be prompted to read and accept the license agreement. After reading the agreement click next to 'I accept...' and then click Next.


When prompted, choose 'Typical' installation, and click Next.


When the installation is complete, you may be asked to restart your computer now or later. Choose to restart it now.


After your computer has restarted and you are online go back and try to play again.


If you still have the same problems with the games after uninstalling and reinstalling the plug-in, please click on the 'Contact Us' tab at the top of this page to request more help. Make sure to let us know that you already tried these steps, so that we can help you from there.





I've been asked to submit a Java log. How do I do that?





For Sun Java users:


If you are using the latest version of Sun Java to play our games, you will see a Sun Java icon that looks like a Coffee Cup in your System Tray (near your computer's clock) after you have started loading a game. Right-click that icon and choose 'Open Console'. Then, click the 'Copy' button. Next, go to your response field of your incident, right-click and choose 'Paste', or press CTRL+V on your keyboard.





If you do not see this icon in your system tray near your clock, then you either do not have the latest version of Java, or you disabled the icon from appearing. To enable the icon again, simply go to your Control Panel, click 'Java', then on the Advanced tab, click the plus sign (+) next to 'Miscellaneous' and check the box next to "Place Java icon in system tray". Then, click OK and start over with the first paragraph to provide us with your Java log.





For MS Java users (Please note that we strongly recommend switching to Sun Java ):


Note: If you're using AOL, you'll need to open Internet Explorer (or right-click the Internet Explorer icon on your Desktop) to view these options:





Go to the Tools menu in Internet Explorer and choose Internet Options.


Click the Advanced tab and make sure you have the following settings:


Browsing


Disable script debugging - OFF


Java VM


Java console enabled (requires restart) - ON


Java JIT compiler enabled - OFF


Java logging enabled - ON


Click the Security tab and make sure the "Security level for this zone" is set to Medium.


Restart your computer for the changes to take effect.





Now your Java Logging is enabled. So the next time the error or problem occurs, you can go to the View menu and choose Java Console. Just copy (hold down the Ctrl key and press the "C" key once) the text in that window and paste (hold down the Ctrl key and press the "V " key once) it into the Contact Us form on our Games Support site to send it to us.





If you're having trouble copying and pasting, check in the C:\WINDOWS\JAVA folder for a file called 'javalog.txt '. You can also send us the contents of that.





If you have any questions, please reply to the request and let the agent who requested it know.





How can I view (or send in) my Java version information?





To find which Java you are using, please do the following:


Click this link to open the Java Version Info window. This is hosted at Pogo.com.


This will make a new in window appear. The window will display information about your Java version that you can use to troubleshoot your issue.





If you want to send this to a Support Agent or have been asked to, please follow the steps below.


Highlight all 3 lines of text in the box of the new window.


To highlight the text, click before the first letter and continue to hold the mouse button down. Drag the cursor to the last character of the third line, and then you can let go of the mouse button.


Copy the text.


To copy the text, hold down the Ctrl key and press the "C" key once. (For Mac users: hold down the Apple key and press the "C " key once.)


Paste the text into the Response Field or the Question Field.


To paste the text, go the text field where you would like the text to appear and left click once in that area. Then, hold down the Ctrl key and press the "V " key once. The text should then appear in the text field.


How can you parse a char to int in java?

I need to convert a char in java to an int... how can this be done?

How can you parse a char to int in java?
Let us start with the parse bit first


http://java.sun.com/javase/6/docs/api/ja...





So you require a string. How do you convert a char to string?


Well take a look at the Character class and you will find this.


http://java.sun.com/javase/6/docs/api/ja...





So to convert a char to a string you use


Character.toString(charData)





Now put that with the parse and you are done.
Reply:i think the easiest way is this:





char c = '9'


int i = Character.getNumericValue(c)





// prints out 9


System.out.println(i);
Reply:Assume that you have a character variable call "c", you can use the command:


int number = Character.digit(c,10);


DONE!


How do I gett rid of the java script error message?

I have done the Tools%26gt;security%26gt;custom level%26gt;.....


25 times I am sick of this ****!

How do I gett rid of the java script error message?
A script error message usually means there's something wrong with the written text on a web page. I press No if asked whether to continue scripting or not. Go into the Advanced section instead of Security. Try checking "Disable script debugging...". Check both if there's one for (Internet Explorer) %26amp; one for (other).


How do I gett rid of the java script error message?

I have done the Tools%26gt;security%26gt;custom level%26gt;.....


25 times I am sick of this ****!

How do I gett rid of the java script error message?
A script error message usually means there's something wrong with the written text on a web page. I press No if asked whether to continue scripting or not. Go into the Advanced section instead of Security. Try checking "Disable script debugging...". Check both if there's one for (Internet Explorer) %26amp; one for (other).

id cards

What website can i use on the psp to IM people without java?

what website can i use on the psp to IM people without java? like without you having to download any java things.

What website can i use on the psp to IM people without java?
ebuddy.com


Does anyone consider JavaScript a good web-programming language to learn?What is difference from Java?

I am designing a web page that allows people to make virtual homemade computers and compare its performance and price with that of a pre-assembled store-bought computer they choose, then order the hardware/software they need to assemble the computer in one unassembled package. I wanted to create the web program for this using JavaScript, but I want to know the difference between that and Java, which one would be easier for other computers to interpret, which best fits the situation, and which is easier to learn.

Does anyone consider JavaScript a good web-programming language to learn?What is difference from Java?
JavaScript is definitely a good language to use (and therefore, to learn) for client-side web applications, and if one prefers, in server-side ASP. No offence to Java fans, JavaScript is more suitable for client-side applications because it is faster, and it is less likely that JavaScript is disabled by browsers than the Java applets. Java is a strongly typed C++ - like language whose most widely used application is client-side programming as applets (and as server-side in JSP). JavaScript is also C++ - like to some extent, but is not as strongly typed as Java or C++. JavaScript is a solution for writing event-handlers for form input components in DHTML which offers faster development and better integration with server-side applications such as PHP, ASP and ASP.NET.





I am not sure if client-side application is enough for what you intending to design. May be server-side applications such as PHP and ASP could do better (while you may still need to use JavaScript in some parts). As I know C# and PHP well, I would use either C# in ASP.Net or PHP for server-side, and not JavaScript as in ASP (or ASP.Net). But it would be your choice to use JavaScript. Good luck.
Reply:There are a lot of similarities between java and javascript because both the languages have been developed by "sun microsystems". Although as far as I think, java is more power full than javascript but java can't interact with internet browser as closely as javascript can. So, If you wanna develop it to work in browser than go for javascript otherwise go for java. I also would like to tell u that learning javascript is just a game if u already know java but initially, learning java is much harder than learning javascript.
Reply:Short answer: you'll want to use JavaScript to add dynamic client-side functionality to your web page (e.g. form validation). JavaScript is very well suited for this purpose. Java on the other hand would be a better choice for handling the server-side functionality (e.g. taking the input of a web-form and interacting with a DB). They are very different languages with different features and purposes which some of the other answers enumerate. You'd be best off investing the time to learn Java, after which learning JavaScript would be straight-forward.
Reply:Hi, Javascript is a client side scripting language created by netscape communication, it's interpreted by the web browser and it's used to create some interaction with the interet user.





You can do your program using javascript and it's simple, but you have to take in consideration several issues: Javascript as i said before is interpreted by your web browser and your program is at the mercy of browser users who may sometimes configure their browsers not to run Javascript!!





Java is an object oriented programming language created by sun microsystems. it's a compiled language and you need a compiler to run it. Sun have introduced Java applets to alow programmers to create small web interactive applications. but like javascript some browsers are configured not to run it.





so the best way to do your program is to use a server side scripting language. a server side scripting language reside on the server hosting your site so the browser has no control over your application: try to look for PHP, ASP, CFML...





once more, many people think that javascript and java are similar!! no they are not and they're not created by the same company.





hope this will help you





:)


How do I make a java rpg save option?

I'm making an rpg in java but I don't know how to make an option that saves the progress. Please be descriptive so I can understand because I am pretty new to Java. Please don't answer saying how another programming language is better.

How do I make a java rpg save option?
A quick and dirty way is to create a "GameState" object that holds all the other necessary objecst, and then save them to a file using serialization (java.io.ObjectOutputStream/ObjectInputS... See the Java Tutorial.





You can also write your GameState object as a JavaBean and use the XML serialization for beans to save to an XML file.





Later, you will probably want to store the information in a more flexible fashion, probably using either an embedded or separate-running RDBMS. Take a look at either Derby (comes with JDK) or HSQLDB.





HTH


What is a good book to learn java scripting language?

One of my teachers mentioned Deitel makes a really good book any other suggestions though?

What is a good book to learn java scripting language?
Learning JavaScript


by Shelley Powers...





http://safari.oreilly.com/0596527462
Reply:You can go through java2s.com its really helpful for starters

flowers online

How I can define a method netsalary in Java ?

how I can define a method netsalary in Java that takes a single argument salary of type double and calculate the net salary of each employee after the deduction of CPF. Assuming that the CPF rate is 20%. The method should display the net salary of the employee.

How I can define a method netsalary in Java ?
Try learning to program in Java - it will really help!


How to create the advanced tabs in the java using applets?

I want to create tabs so that each tab will show different information and I want to create tabs in java using applets beacause I want to execute them in internet explorer, how this is done. These tabs should be like tabs in yahoo like my questions, my answers?

How to create the advanced tabs in the java using applets?
It is not that easy. May be you can contact a java expert. Check websites like http://definitivelab.com/


Why does Java lock up my firefox every time it starts up for the first applet?

The whole browser locks while it loads Java. Then when I close the browser, often the process keeps going in the background and I have to kill it manually.

Why does Java lock up my firefox every time it starts up for the first applet?
Something up with the java RTE... this happens in IE as well. I have to kill via Task Manager.
Reply:Try upgrading your java or your browser BTW Firefox sux.


Has anyone figured out how to resolve the Java/Game problem or do we have to wait it out?

Virtual machines running caused error...seems to be on the Java site as their issue, and the workarounds are not working. Anyone find resolve?

Has anyone figured out how to resolve the Java/Game problem or do we have to wait it out?
It looks like we have to wait.

flower seeds

Why is Java so Dogmnatic about everything being a part of a class?

One of my main complaints about java is that the language insists everything be part of a class including main. However, since main() is called before a class has been instantiated, it must still be static, which is frankly, the same as being a global function!





Can anyone defend the purpose in having main() as part of an uninstantiated class?

Why is Java so Dogmnatic about everything being a part of a class?
I tried googling this for a while and could not find a clear answer (or anything that alluded to a small explanation!).





I really do not like OOP at all. I remember my first Java class- it was also my last.





Not only is the coding obnoxious, but what a memory hog java is! UGH.





Actually Java is the reason I changed my major! LOL no kidding.





Good luck on your quest; I'll be watching this to see what others say.





Come to the Unix side. We're waiting for you. ;)
Reply:How would you prefer to write it? It's never bothered me.





It just simplifies the types of files to maintain to one. A class. And by doing it this way, you can easily add a main method to any class and be able to instantiate it from the command line.





I think the real problem you're having here is that you're trying to write procedural code in an object-oriented language. You really have to embrace the whole oo mentality to enjoy the true beauty of java. If the way you think about solving a problem is by executing a series of steps (procedural), rather than creating a collection of tools (object-oriented) than you're probably using the wrong language.


How can I hide the cmd window in Java?

I'm writing a Java program with a GUI for a course assignment.





I would like to know how I can hide the cmd window so that it doesn't show when running the program, and that it closes automatically when I close the GUI window.





Thanx in advance.

How can I hide the cmd window in Java?
I think you mean the DOS prompt? Because I think most on these boards are Microsofty...





You can Java Web Start


You can launch with a double-click of a jar


You can write a launcher in C


You can write an applet and the applet launches the GUI (see inside your JDK1_6_xx --%26gt;demo --%26gt;jfc --%26gt;Java2D --%26gt; the Java2Demo.html and the companion /src, tracing the first 3 class


You can write a .bat that starts out with: java spiffyGUI


(then, I don't know the commands, but you would minimize DOS prompt, and java puts up a splash screen). The .bat approach does allow a "poor man's" desktop icon. After you create the .bat, you can change it's desktop icon.





Out of those options, the Java Web Start (JNI) is the best option, followed by the jar. Any method to hide a DOS launch puts two taskbar buttons on Mr. Windoze GUI.


Why can't I see the java games I downloaded on my motorola razr?

I downloaded several games for my Razr but the display only shows part of the game - sort of like when the resolution is set too low for a computer monitor. I can't find any settings to adjust the resolution on the phone or the games. Can anyone help? Thanks!

Why can't I see the java games I downloaded on my motorola razr?
Well.... first of all, the RAZR SUCKS. *ahem* sorry. anyways, it depends, did you down loadit off of get it now, or a web site? if you downloaded it off of get it now, your phone may have a problem. if you downloaded it off of a website, the game is not properly formatted for phones.


Is it ok to download the java program that runs runescape?

I wanted to know if it had any viruses because i dont have protection. I know i should but i have not gotten around to buying it yet.

Is it ok to download the java program that runs runescape?
The version of Java that RuneScape uses is made by Sun Microsystems, the company that created and makes all the updates of Java. Sun Microsystems would not put viruses in their updates, since they'd lose way too much money.





Put it this way. Sun Microsystems has been churning out virus-free versions of Java for years. They'd lose a lot of money and trust if a virus showed up in an update.
Reply:"Is it ok to download the java program that runs runescape?"





It's okay with me.
Reply:yes it never permanetly downloads though

anther

Who wants to be my personal Java tutor on a messenger?

I have a program due Sunday and have no idea what to do. I suffer with an incompetent teacher and I struggle to learn the material. Any tips you could give me would help.





If interested leave your messenger id.

Who wants to be my personal Java tutor on a messenger?
if your talking about javascript i use w3schools for anything i need to know about javascript -- google search w3schools -- i will also post the link below --
Reply:May be you can contact a java expert at websites like http://askexpert.info/


Windows Vista users do you have trouble running Java on your computer?

I play alot of Pogo games and everytime i try to pull up a game I get a stupid error screen so I go and delete the Java already installed and re install it then it will pull up fine for a few days then bang there it is again ! I never had this trouble with windows xp. Is it just Vista or do you think it's my computer ?

Windows Vista users do you have trouble running Java on your computer?
no i dont have problm with JAVA, try to re install it with latest updates...





http://www.filehippo.com/download_java_r...
Reply:I had no trouble after downloading the latest java package from their website.
Reply:No, I never had any kind of java problem.





I think it's your computer problem.


What are the differences between java script and html links?

How do they related in terms to legacy links? Maintenance? Loading time? Any and everything else?

What are the differences between java script and html links?
HTML is a language that creates all the beautifull colors in a webpage, and it helps you put the objects in place, replace backgrounds.. But Javascript is a small programming languages that can be used in an HTML page, but you can't make Javascript pages, javascript is used to create an active interface like webforms or to solve some internet problems.. It's a small interactive program online if this makes it more clear.





For the loading time well there is no difference since you can't have a javascript page with HTML as the base.
Reply:You can do some interesting things with them, for instance opening the link in a new browser window without a status bar, address bar, buttons, etc.





The only major concern I can think of is that really old browsers just don't support JavaScript at all and won't even parse the scripts, let alone follow the links properly.
Reply:There are only HTML links, anchors.





You might want to rephrase the question.
Reply:If you want to rank good on the search engines stay away form generating links through JavaScript as long as it is possible. JavaScript generated links can be dynamic while HTML links are always static.





http://www.cybertopcops.com


Friday, July 31, 2009

What is the function of java vertual and how is it installed?

Is it advantageous to have it installed?

What is the function of java vertual and how is it installed?
Is it advantageous to have it installed?


Yes. You will need it to run java programs in your browser or on your desktop.





What function does it serve?


The Java virtual machine is a bit like a translator. I'll explain.





Most software programs when they are created are written in a human readable code. Then a compiler and linker takes that code and compiles it into machine code. That machine code can only run on very specific hardware and operating systems. Programs Like Microsoft Office are an example. It has to be compiled to run on Windows. To run on a Mac it has to be recompiled use a Mac compiler.





Java programs are different. They aren't compiled into machine code. They are compiled into what's called, "Java Byte Code". When you run a java program, the virtual machine translates the Byte Code into Machine code.





The advantage of java is that you only have to compile and distribute one version of your program. If Microsoft office was created using Java, you would bye only one version of it and it would work on both your Mac, WindowsXP\Vista, or any other operating system that has a java virtual machine on it(Like Unix or Linux or your Mobile Phone). Instead, you have to bye different versions.





The disadvantage of java is that it comes at a price of speed. The virtual machine translator slows down your program. Though the speed keeps getting better with each release.
Reply:It allows you to run java programs in your browser without installing java SDK
Reply:Java Virtual it's a pluging that will run Java aplications on your machine, not necessarily Internet based aplications but is the common use of it.





Most web pages will telll you to download teh Java virtual once you get in there and you don't have it, providing direct links to the download installation package, but you could also go to their main website www.java.com the first thing you'll see it's the download link wich is free.

tomato plants

In Java if you do not explicitly declare accessor type for instance variable what accessor type is assigned?

For example if you have





public class Example{


int someNum;


}





What accessor type is assigned to someNum by the java compiler. Is it public or protected?

In Java if you do not explicitly declare accessor type for instance variable what accessor type is assigned?
If you use the default visiblity it is "package" visibility. Meaning that field or method is visible to other objects and classes in the same java package.
Reply:NetBeans will not let you assign an accesor to instance variables-- after the constructor, and that's logical, only class-definition variables need the degrees of visibility -- defined outside the constructor.





In your example, you have the default visibility accessor... meaning that only a class within that same package can see int someNum. Default and final are the other accessors -- like protected and private.
Reply:That's a good question. I didn't readily find the answer but it would be most logical for them to be private, so that they are only accessible within the class. That would cause the least upset if one forgot to declare an accessor type.
Reply:fields are private by default, but it's good practice to give them a type.


How do you download java games onto Samsung u700?

I live in singapore and i went through this tutorial thing.


But when i enter a code on the main screen, it doesn't let me install MIDlet and stuffs. Is it because of my country?

How do you download java games onto Samsung u700?
Hi there, im from singapore too!





First of all you must be a wap enabled user. Call your service provider to subscribe for it if you havent.





After you are wap enabled and If you wanna download games, go look for "Internet" in ur phone and look for "Bookmarks" and click on "Samsung fun club". Inside you can download lotsa cool stuffs. By the way you WILL be charged accordingly to the price of the games. It cost around a meal. :)





Im not sure about the Code you entered on the main screen. Maybe you can try to reset the phone and try to download again. Last resort you may wanna call up samsung care center and tell them your problem. But you shouldnt mess too much with the Code on the main screen, because some of them will affect the softwares of the phone it self.


Have been trying to play free games online but says i need java enabled or installed?

have installed java several times successfully, thats what the screen says but still unable to launch any free game sites.getting very fustrated with this. our computer uses vista. have been able to play before but as first of year have not been able to get any free game sites to come up.keeps saying there is a problem or mistake.please help .

Have been trying to play free games online but says i need java enabled or installed?
Well, you could try a couple of things.





First thing, I would reinstall it, but this time go to custom install and do a complete installation of everything. After this, I would restart the computer, even if it didn't ask me to.





If this doesn't work, I would try out another browser. You could download Firefox (www.firefox.com), and see if this makes it any better. Internet Explorer tends to get a lot of problems, and firefox is a lot better for the internet in general.





If the browser was the problem, I'd reinstall Internet Explorer, as there may have been some sort of spyware or virus that has caused it to act differently.