Jump to content

Importing code into notepad

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Shortay

Shortay

    Newbie

  • Members
  • Pip
  • 3 posts
Hi, I am have been programming for about 2 days. Well I created a code that displays, "i love allie" whenever anything is typed. Yes its very simple but I have been working on this since monday night. I am in my first programming class now. Well, I was wondering if anyone knew of a tutorial to import the code into a program such as notepad so i can put it on my girlfriends computer. Like i said i'm new so i don't know if this will be alot of work, but i don't give up easy. I have searched but i couldn't find anything.
Thanks

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I don't know Java but in most languages you need to compile your code to make it work. You need to copy the compiled code (I think this is a .JAR file) to your GFs comp in order for her to use it. Burn it to a CD or send it via email and then download it on your comp.

#3
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Since Java code is interpreted by the JRE, without the JRE installed on your girlfriends computer, it wont run. However, you could create it in an applet and execute it through a browser.

#4
Shortay

Shortay

    Newbie

  • Members
  • Pip
  • 3 posts
thanks guys. I will continue working on it. I guess i am trying to get ahead of myself considering how new i am and how powerful the program is.

#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I always like to try and walk before I crawl. It's a little more painful, but in the end, I think its more beneficial.

#6
G_Morgan

G_Morgan

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 537 posts
Are you trying to get the source code or the actual program on your girlfriends computer?

Remember that the infrastructure around Java is essentially free and that you could install all the sections you need on her computer if need be. If you only want the non compiled code then you need only copy and past the appropriate .java files.

#7
Shortay

Shortay

    Newbie

  • Members
  • Pip
  • 3 posts
well i thought it would be an interesting way to tell her i loved her. But at first i thought it would be as easy as typing some code into notepad to alter the program, but i found out its not.
I didn't want it permanently on there, just where i can say, "hey lets see how fast you can type then boom and delete the code after she saw it.

#8
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I watched No Country for Old Men yesterday - 4/10