Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCRTGraph for Java
 Problems loading the QCLicense.java.lic.xml file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

daviddu@cctexas.com

14 Posts

Posted - 18 May 2007 :  12:22:14  Show Profile  Reply with Quote
After months of inactivity, I'm getting back to writing a set of java applets using the RT tools.

I've included the license file in my jar file, and when ChartView.loadLicenseFileasResource is executed, it returns a true, but when I start using the graphics functions, I keep getting a message saying the license file has 'expired'.

Whats up?

David

quinncurtis

1586 Posts

Posted - 18 May 2007 :  13:17:19  Show Profile  Reply with Quote
We aren't aware of any problem with reading the license file from within the jar. Please supply us with additional information.

Did this program once work, exactly as is, and only the passage of time is different? Or is this the first time you have tried to load the license file from within a jar file?

What path do you specify in loadLicenseFileasResource call, and where is the license file located in the jar file in relation to the module where loadLicenseFileasResource is called?

Are you sure you are using the license file that came with the Developer version of the software, and not an earlier trial license?

Are you running the program as a workstation application, or running it on a server and viewing it through a browser as an applet?
Go to Top of Page

daviddu@cctexas.com

14 Posts

Posted - 18 May 2007 :  13:47:13  Show Profile  Reply with Quote
OK, I'll see if I can answer your questions.

I got pulled off the project months ago before completing it. I believe (but don't remember for sure...) that it was working properly with regards to loading the license file.

This is running as an applet from my WEB server, and I'm loading it into IE.
The code I'm using is a verbatim copy of the code from page 298 in the tutorial (with a couple of additions).

Exerpt from the code involved:
-----------------------------------------------------------
// Since the Frame1 class is not used in this applet example, the
// license file is initialized here.
InputStream instream = this.getClass().getResourceAsStream("QCLicenseJava.lic.xml");
boolean filefound = ChartView.loadLicenseFileAsResource(instream);

if(filefound)
System.out.println("Found License file");
else
System.out.println("Couldn't find the license file");

-----------------------------------------
The applet console window shows "Found License file" every time. I should also say that there is a considerable amount of additional code that is executed before doing the first RTGraphics call.

David Dudley

David
Go to Top of Page

quinncurtis

1586 Posts

Posted - 18 May 2007 :  14:21:01  Show Profile  Reply with Quote
You must make the loadLicenseFileAsResource call before ANY other call is made into our libraries. So you should check that.

Does the program run properly if you do not put it into jar file?

Did you check that the license file in your program folder (that's where the path you use in getResourceAsStream says the license file is) matches the one in the C:\Quinn-Curtis\java\com\quinncurtis folder? If not, update it with that version.



Go to Top of Page

daviddu@cctexas.com

14 Posts

Posted - 21 Aug 2007 :  16:38:02  Show Profile  Reply with Quote
Finally, after months of being off on other projects, this project has become important enough to warrant giving me some time.

I've falled back to reinstalling the software on a new computer (the old one was 'recalled').

Running your demo program 'scrollgraphdemo' gives me the same 'expired' message.

I get a box in the middle of the screen that says:

--------------------------------------------------------------
Your license to use the QCRTGraph Java software has expired.
Use this opportunity to purchase the product from our web site.

www.Quinn-Curtis.com
--------------------------------------------------------------

This software is from last March (March 2006). Version 1.5. Any new wonderfull stuff that would give me a reason to tell my boss to upgrade?

David

David
Go to Top of Page

quinncurtis

1586 Posts

Posted - 21 Aug 2007 :  16:52:32  Show Profile  Reply with Quote
That can only happen if you are installing the trial version of the software, or if for some reason you are referencing the trial license, instead of the developer license.

If you don't know where your developer downlod is you should track down the original download links from the e-mail that was sent to you after your order and re-download, then re-install the software.

Your original download links will download the current version of the software.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07