Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:03:31+00:00 2026-06-18T02:03:31+00:00

I am using Java in my FireFox extensions and I am unable since Mozilla

  • 0

I am using Java in my FireFox extensions and I am unable since Mozilla stopped supporting Java in FireFox 16,17,18 . So I found that using LiveConnect it was possible before but now it’s not.

Is there a way around that? I want to use Java in my FF extensions in versions 16 and above since people don’t want to downgrade to version 15 that easily.

So far I had used java like this.

function createFile(folder,file)
{

destinationDir = new java.io.File(folder).mkdirs();
file = new java.io.File(folder,file);
file.createNewFile();
}

And it worked great. But this no longer works in FF I mentioned.

I found this question here.

Unable to load Java into Firefox 16 extension using Liveconnect

But no one replied.

Please don’t lower my reputation because of this I work hard for it. If question is not properly asked then just close it. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:03:32+00:00Added an answer on June 18, 2026 at 2:03 am

    This is an example of function I use to replace Java for my work.

    var string = '\u5909\u63db\u30c6\u30b9\u30c8';
    file.initWithPath('C:\\temp\\temp.txt');
    file.create(file.NORMAL_FILE_TYPE, 0666);
    var charset = 'EUC-JP';
    var fileStream = Components
    .classes['@mozilla.org/network/file-output-stream;1']
    .createInstance(Components.interfaces.nsIFileOutputStream);
    fileStream.init(file, 2, 0x200, false);
    var converterStream = Components
    .classes['@mozilla.org/intl/converter-output-stream;1']
    .createInstance(Components.interfaces.nsIConverterOutputStream);
    converterStream.init(fileStream, charset, string.length,
    Components.interfaces.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
    converterStream.writeString(string);
    converterStream.close();
    fileStream.close();
    

    On mozilla developer documentation you can find more about this XPCOM that can be used for reading/writing files and similar procedures. So instead of Java I use this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found that firefox has excellent support for showing unicode text correctly. But
I am using GWT-JAVA. The Login page displayed good in firefox. But In IE
Using Java (1.6) I want to split an input string that has components of
When using java.jdbc in clojure is it possible to use delete-rows with a complex
I'm using java.awt.Robot for integration tests of my Swing application, but I'm having trouble
Is it possible to open pop-up windows BEHIND the current active screen using java
I have a Java applet that downloads data from where it's hosted, using HTTP.
I am using XPCOM to read/write file(s) on my hard drive (since Java is
Using Java IO streams, it is quite often we use objects solely as constructors
Using java If I store windows paths in a h2 database, and then try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.