Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Javaweb code

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Javaweb code

    Okay..

    I know there's a way to embed java code into HTML or something like that, sorry i am not the most of tech persons and new to Java.

    I am just wondering if i program something like a forum and embed it into html how secure or protected is the code from being accessed or stolen?? Can its be easily protected

    Thanks


  2. #2
    Forum VIP
    Join Date
    Jun 2011
    Posts
    317
    My Mood
    Bored
    Thanks
    47
    Thanked 89 Times in 74 Posts
    Blog Entries
    4

    Default Re: Javaweb code

    Java Applets can be embedded in HTML. They are kinda overkill for something like a forum. You are better off with traditional web technologies like PHP or Javascript. In fact, for something like a forum just use an existing solution. Good developers don't rewrite code.

    Quote Originally Posted by JavaDIV
    I am just wondering if i program something like a forum and embed it into html how secure or protected is the code from being accessed or stolen?? Can its be easily protected
    Java is compiled into byte code. It strips your variable names and comments and ends up as something not easily readable. You can obscurify the byte code to make it even harder to read but few people worry about it. Short answer is no, people cannot access your source code once it is compiled. Long answer is yes, if someone is committed enough they can reverse engineer the byte code and reconstruct the source. The same is true for all languages. It's typically easier just to rewrite the entire program than it is to reverse engineer someone else's code which is why it isn't much of a problem.

  3. The Following User Says Thank You to ChristopherLowe For This Useful Post:

    JavaDIV (November 3rd, 2013)

  4. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Javaweb code

    Thanks,

    I'm looking to setup some form of subscription based private community forum with training modules programmed in Java to begin with anyway. I guess I'll just have to keep my "modules" or Javaapplets as you say really fresh and bespoke. Obviously is I am charging people to access these items then obv if they can reverse engineer it they will at the end of the day to gain unlimited access.... hmmm makes me wonder if its worth it now

Similar Threads

  1. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  2. Replies: 4
    Last Post: January 24th, 2013, 11:20 AM
  3. Replies: 7
    Last Post: January 24th, 2013, 10:41 AM
  4. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM