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 2 of 2

Thread: Java licensing system URGENT

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Java licensing system URGENT

    Hello, Sorry to bother you busy people

    I've got a client i dont trust will pay me after a week of testing the program i have developed.

    Could somebody direct me as to where i could go for a tutorial or a way of going to create a demo license for this program, After a week it will stop working. Then i will give him the full version..

    Need this urgent have to meet client in 3 hours.

    Don't give me code just point me in the right direction, This will come handy in my future programs


  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: Java licensing system URGENT

    nobody culd help so i did a dodgy trial system for now..

    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Scanner;
     
    import javax.swing.JOptionPane;
     
     
    public class license {
     
    	public static boolean Expired;
     
    	public license() throws Exception{
     
    		FileReader file;
    		try {
    			file = new FileReader("AD Converter/temp/comp.txt");
    			Scanner scan = new Scanner(file);
     
    		    String licno = scan.next();
    		    Integer.parseInt(licno);
     
    		    int tempOut = Integer.parseInt(licno);
    		    tempOut = tempOut - 1;
     
     
    		    if(Integer.parseInt(licno) <= 0){
    		    	JOptionPane.showMessageDialog(null, "Sorry, Your trial has expired. Please purchase the product for unlimited use!");
    		    	Expired = true;
    		    }
    		    else if(Integer.parseInt(licno) <= 40){
    		    	JOptionPane.showMessageDialog(null, "You current have: " + licno + " uses left.");
    		    	PrintWriter out = new PrintWriter(new FileWriter("AD Converter/temp/comp.txt"));
    		    	System.out.println(tempOut + " Value");
    		    	out.print(tempOut);
    		    	Expired = false;
    		    	out.close();
    		    }
     
    		} catch (Exception e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
     
    	}
     
    }

Similar Threads

  1. Need urgent help regarding java word wrap function.. URGENT
    By coldice in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 16th, 2011, 05:43 AM
  2. online system on java
    By u-khan1 in forum Paid Java Projects
    Replies: 0
    Last Post: March 8th, 2011, 06:02 AM
  3. Using JAVA to access System Resources
    By aussiemcgr in forum Java Theory & Questions
    Replies: 9
    Last Post: December 4th, 2010, 02:15 AM
  4. Advice on Java personal msg system?
    By cyborgbill in forum Java Theory & Questions
    Replies: 1
    Last Post: March 30th, 2010, 03:00 AM
  5. Urgent Help needed with java codes
    By makarov in forum Java Theory & Questions
    Replies: 0
    Last Post: November 13th, 2009, 07:23 AM