WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Package JAVA  (Read 2163 times)

Offline jdamianb

  • Newbie
  • *
  • Posts: 12
  • Be OpenSource
Package JAVA
« on: August 26, 2013, 09:41:20 PM »
Hi, now I'm taking another step on TC. I need to install Java JRE 6.0 to run my apps on TC. It was easy to install and to publish the JAVA_HOME and add it to path, I just extract the files and modified the /etc/profiles exporting JAVA_HOME and PATH.

Now I want to create a package which can be installed as a TCZ to extract the java files and to publish the JAVA_HOME. I succeeded to extract the files everytime I install the package I made, but I don't know how to get the JAVA_HOME created automatically. I'm using this method to create a package:

https://code.google.com/p/tcztools/

I don't know where to put a script that can create a file on /etc/profile.d so the JAVA_HOME get published.

Any ideas?

Thnks,
Mind Wide Open
Be OpenSource

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Package JAVA
« Reply #1 on: August 27, 2013, 04:45:40 AM »
You could just add modified config files to your backup.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: Package JAVA
« Reply #2 on: August 27, 2013, 11:31:53 AM »
Hi jdamianb
You can add a startup script under  usr/local/tce.installed  in your package. The name of the script will be the same
as the name of the package without the  .tcz  extension.