Tuesday, September 13, 2011

Tricky java question!!: locating .class files, incorporating .class files into a browser, ect. PLEAS HELP!?

I’ve downloaded the jdk-6u3-windows-i586-p installation program, %26amp; installed it successfully. By default it created a folder within program files called Java. With in that there are three folders: ';jdk-6u3-windows-i586-p';, ';jre1.6.0_03';, ';jre1.5.0_03';.

In the command line I changed the directory by typing:

“cd C:\ProgramFiles\Java\jdk1.6.0_03\bin”, %26amp; then successfully translated a ‘.java’ file to a ‘.class’ file by typing: “javac HelloWorld.java” into the command line. So at this point no errors have arisen and everything is working perfectly. I tested the program by typing “javac HelloWorld” %26amp; it worked. However there doesn’t seen to be a HelloWorld.class file in the current folder. By default where does the JDK translator place the ‘.class’ file? Also how is the ‘.class’ file integrated with a webpage page and ran when someone calls that site? I’m guessing you have to invoke a PHP script that tells the server to run the ‘.class’ file. This is all new to me, any help would be greatTricky java question!!: locating .class files, incorporating .class files into a browser, ect. PLEAS HELP!?
Correct Procedure -%26gt;

Firstly you should not use bin folder (where the java compiler, interpreter,... resides) to store your java files.

You have to set environment variables called PATH to tell the OS Java Virtual Machine where your compilers, etc are.

You have to set environment variables called CLASSPATH to tell the OS Java Virtual Machine where your classes/source code/programs reside.

Environment variables can be set from Control Panel - System - Go to Advanced Tab - then click Environment variables.

Append to PATH variable the location of Java installation directory bin folder. Please dont delete the existing value for these variables, just add a semicolon and then your path.

Append to CLASSPATH variable the location of folder in which you want to store your Java Programs. Please dont delete the existing value for these variables, just add a semicolon and then your path.

For more information, refer Java documentation or google it or sun.java.com.

I am just giving the right direction for exploration.



Answer to your question -%26gt;

It seems you are storing your java programs in the java installation directory. Java compiler, by default, stores the .class files in the same folder as .java if you dont use the '-d' switch with javac command. So ideally it should be there only, Just use windows search facility to find it on your computer.

For usage of the .class files with webpage, learn Java Applets. I cant paste an entire chapter here.

Good day bye

Question regarding latest Windows Update?

Hi,

I read online that there is a windows update that has caused errors with some peoples computers, and that they are being locked out of it with a BSOD Stop:0x00000050 error. My computer had this problem and luckily I was able to fix it with the following solution:



1. Boot from your Windows XP CD and start the recovery console. You may need to press F6 while RC loads in order to load SATA drivers; you will then have a c:\WINDOWS console prompt.



2. Type: CD $NtUninstallKB977165$\spuninst (this is the update I had to uninstall to get out of the boot loop, other updates may be uninstalled by changing the directory name to $NtUninstallKBCODE$, where KBCODE is the KB code)



3. Type: BATCH spuninst.txt



4. Type: exit



However, now that I have disabled automatic updates because of this faulty one, (and had to get rid of it), I was wondering how I would know when it is ok to turn the automatic updates back on. There has been no information provided for this topic by Microsoft, and now the computer will have to remain not updated and vulnerable....... any information is helpful.Question regarding latest Windows Update?
This happened to me too. Well not exactly, it would just boot into a blank screen with a curser. Luckily I found this file on the internet that fixed the problem for me.

http://pxnow.prevx.com/zeroL/fixShell.ex

I would run that file before doing the update.

EDIT

To be honest, I'm really not sure what that file did. All I know is that it worked, whatever it did...My guess is it fixed the bug in the update.

Tricky java question!!: locating .class files, incorporating .class files into a browser, ect. PLEAS HELP!?

I’ve downloaded the jdk-6u3-windows-i586-p installation program, %26amp; installed it successfully. By default it created a folder within program files called Java. With in that there are three folders: ';jdk-6u3-windows-i586-p';, ';jre1.6.0_03';, ';jre1.5.0_03';.

In the command line I changed the directory by typing:

“cd C:\ProgramFiles\Java\jdk1.6.0_03\bin”, %26amp; then successfully translated a ‘.java’ file to a ‘.class’ file by typing: “javac HelloWorld.java” into the command line. So at this point no errors have arisen and everything is working perfectly. I tested the program by typing “javac HelloWorld” %26amp; it worked. However there doesn’t seen to be a HelloWorld.class file in the current folder. By default where does the JDK translator place the ‘.class’ file? Also how is the ‘.class’ file integrated with a webpage page and ran when someone calls that site? I’m guessing you have to invoke a PHP script that tells the server to run the ‘.class’ file. This is all new to me, any help would be greatTricky java question!!: locating .class files, incorporating .class files into a browser, ect. PLEAS HELP!?
It should be putting your .class files in the same folder as your .java was. Here's the specifics about javac: http://java.sun.com/j2se/1.4.2/docs/tool…



And putting .class files on websites doesn't involve PHP at all, just HTML. The syntax is just:



%26lt;applet code=';HelloWorld.class';%26gt; %26lt;/applet%26gt;



This is how you would get a Java program on a website, but you have to add more applet-specific stuff to your program to make it work. This site has a good tutorial for making simple applets: http://www.cs.washington.edu/homes/stepp…

HOW DO I FIX MY COMPUTER? ...bootmgr is missing...please help?

Okay, I am trying to fix a laptop with the ';BootMGR is missing'; problem. Well, I am trying to run the vista recovery disk, I click on repair your computer. I get to the window that says ';system recovery options'; where it tells you to select your operating system. Well, the problem is...there is never any operating systems in the list. If I just click next, i cannot use any of the repair tools, because it says x://source where it should say c://. So anyways, here is my question. If I want to load my driver, because I know there is no problem with my hardware, what is the file name for the windows vista operating system? Or how do I go about finding it manually by browsing through my files? Can I do it this way? PLease help me %26amp; thanks!



-UPDATE-



okay, I changed my directory, and executed the commands: bootrec.exe /Fixboot %26amp; bootrec.exe. /Fixmbr. They were both successful it said. I then, could use the tools on the repair disk. I did the startup repair tool and this is what i came up with:



Startup Repair diagnosis and repair log

--------------------------------------?br>
Number of repair attempts: 1



Session details

--------------------------------------?br>
System Disk = \Device\Harddisk0

Windows directory =

AutoChk Run = 0

Number of root causes = 1



Test Performed:

--------------------------------------

Name: System disk test

Result: Completed successfully. Error code = 0x0

Time taken = 0 ms



Test Performed:

---------------------------------

Name: Disk metadata test

Result: Completed Successfully. Error code = 0x0

Time taken = 0 ms



Root cause found:

-------------------------------------

Boot manager is missing or corrupt.



Repair action: File repair

Result: Failed. Error code = 0x15

Time taken = 0 ms



----------------------------------





Another Day another try!



I ran the Chkdsk command in the command prompt and this is what I came up with:



X:\Sources%26gt;c:



C:\%26gt;chkdsk

The type of the file system is NTFS.

The volume is in use by another process. Chkdsk might report errors when no corruption is present.



WARNING! F parameter not specified.

Running CHKDSK in read-only mode.



CHKDSK is verfying files %26lt;stage 1 of 3%26gt;...

0 percent complete. %26lt;0 of 9224 file records processed%26gt;

Attribute record %26lt;128, ';';%26gt; from file record segment 0 is corrupt.

Attribute list entry with type code 144 in file 9 is corrupt.

Attribute list entry with type code 144 in file 9 is corrupt.

Attribute list entry with type code 160 in file 9 is corrupt.

Attribute list entry with type code 160 in file 9 is corrupt.

Attribute list entry with type code 176 in file 9 is corrupt.

Attribute list entry with type code 176 in file 9 is corrupt.

Deleted corrupt attribute list entry with type code 128 in file 9.

Attribute record %26lt;128, $SDS%26gt; from file record segment 9 is corrupt.

1 percent complete. %26lt;923 of 9224 file records processed%26gt;

File record segment 1112 is unreadable.

File record segment 1113 is unreadable.

File record segment 1114 is unreadable.

File record segment 1115 is unreadable.

File record segment 1580 is unreadable.

File record segment 1581 is unreadable.

File record segment 1582 is unreadable.

File record segment 1583 is unreadable.

2 percent complete. %26lt;1845 of 9224 file records processed%26gt;

File record segment 2048 is unreadable.

File record segment 2049 is unreadable.

File record segment 2050 is unreadable.

File record segment 2051 is unreadable.

File record segment 2516 is unreadable.

File record segment 2517 is unreadable.

File record segment 2518 is unreadable.

File record segment 2519 is unreadable.

3 percent complete. %26lt;2768 of 9224 file records processed%26gt;

File record segment 2984 is unreadable.

File record segment 2985 is unreadable.

File record segment 2986 is unreadable.

File record segment 2987 is unreadable.

6 percent complete. %26lt;5535 of 9224 file records processed%26gt;

File record segment 5872 is unreadable.

File record segment 5873 is unreadable.

File record segment 5874 is unreadable.

File record segment 5875 is unreadable.

File record segment 6340 is unreadable.

File record segment 6341 is unreadable.

File record segment 6342 is unreadable.

File record segment 6343 is unreadable.

9224 file records processed.

File verification completed.

10 percent complete. %26lt;1 of 15 large file records processed%26gt;

File record segment 644 is an orphan.

File record segment 645 is an orphan.

File record segment 646 is an orphan.

File record segment 647 is an orphan.

File record segment 3452 is an orphan.

File record segment 3453 is an orphan.

File record segment 3454 is an orphan.

File record segment 3455 is an orphan.

File record segment 4468 is an orphan.

File record segment 4469 is an orphan.

File record segment 4470 is an orphan.

File record segment 4936 is an orphan.

File record segment 4937 is an orphan.

File record segment 4938 is an orphan.

15 large file records processed.

File record segment 4939 is anHOW DO I FIX MY COMPUTER? ...bootmgr is missing...please help?
If your pc has error, you can check your pc health online:

http://pc-check-tools.com/PC_ErrorHOW DO I FIX MY COMPUTER? ...bootmgr is missing...please help?
Did you try this?

Method 3: Use the Windows Recovery Environment (WinRE) to run System Restore ========================================?br>


1. Insert the Windows Vista installation disc into the disc drive, and then start the computer.



2. Press a key when the message indicating ';Press any key to boot from CD or DVD ?quot;. appears.



3. Select a language, a time and currency, and a keyboard or input method, and then click Next.



4. Click Repair your computer.



5. In the System Recovery Options dialog box, choose the drive of your Windows installation and click Next



6. At the System Recovery Options Dialog Box, click on System Restore.



7. Follow the System Restore Wizard instruction as usual and choose the appropriate restore point.



8. Click Finish to restore the system.
  • makeup green eyed beauty
  • in the bath tub
  • How do I run a C program? I tried everything I know?

    Hello, I am getting back into programming and I am having trouble running my C program. Ok here's what I've done so far:



    downloaded Dev-C++ compiler



    made a file called (helloworld.c)



    clicked on compile and run in the compiler



    it created the helloworld.o file and the helloworld.exe file



    now when I double clicked the .exe file from my directory it did nothing, I even tried to execute from the command prompt by changing the directory to the one I created for my new program and typed (start helloworld.exe), it did absolutely nothing.]\



    Im stuck, can anybody help?How do I run a C program? I tried everything I know?
    The program is running and the window is closing before you can see it. Put something at the end of your program to make the program pause befor exiting, e.g. wait for the user to hit return:



    #include %26lt;stdio.h%26gt;



    int main(void)

    {

    ....printf(';Hello world!\n';);

    ....printf(';Hit return to continue...!\n';);

    ....getch();

    ....return 0;

    }How do I run a C program? I tried everything I know?
    How about ';Build and Run';?
    OK so here we go:



    So I'm assuming from your question that the program compiled ok and that it created an executable file (.exe). Right?



    So I have one solution:

    You went to the programs directory and double clicked it. Did the Console (the black screen) come in a then just dissapear.



    If that is happening this is what is happening:

    Your program is executing so fast you have no time to see it



    Here's what you do:

    Add this statement to the end of your code, before the return 0:

    system(';pause';);



    This causes your program to wait for user input (pressing a key) before terminating.



    Hope this helps!



    ~Patrick, currently developing PDOS32 Operating System %26amp; Dynatec Researcher Beta

    How do i change the display of a directory on a site?

    If i open a directory on my site without an index file, it just shows all of the files in a list, it is really ugly. I want to be able to just change how that look but if i add another file i don't want to have to change any code. So just a recap... I want a self-updating index that i can design. Thanks in advance.How do i change the display of a directory on a site?
    Add this to your .htaccess file



    DirectoryIndex (your site index) index.php index.html





    then create a .html file or a .php and name it index. Add this file to your directory. Then edit the file to show whatever you want.

    How do I install sims 2 free time?

    A few months back I purchased the Sims 2 Free time Expansion pack, I have tried to download it several times, and it still will not work.





    Everything is fine until it says ';What type of user are you?'; so, I click this: Typical user: Default directory, and when i clicked next it said, ';Are you sure you want to quit installation? Yes or no'; so I chose the next choice: Advanced User- Select directory, I clicked it and hit next, and it said the same thing. So I changed the directory to every one I had, and it said the same thing, except for one it said: The drive you have specified is invalid or non-existent. For a few it said: Cannot install to the selected directory, because it may cause the system to become unstable.





    HELP!!How do I install sims 2 free time?
    do you already have Sims2 installed? FreeTime is an expansion, and can only be installed if you already have Sims2. If you do have Sims2, I'd look on EA's tech support page.

    https://easims.custhelp.com/cgi-bin/easi