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 8674129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:37:49+00:00 2026-06-12T19:37:49+00:00

Google Closure works GREAT without the Java Runtime Environment by using IKVM In case

  • 0

Google Closure works GREAT without the Java Runtime Environment by using IKVM

In case that ever goes away, the simplified steps to convert it to an exe are:

  1. Download and extract (but nothing to install) Closure Compiler and IKVM
  2. Move compiler.jar to the IKVM bin folder
  3. ikvmc -target:exe -fileversion:2012.09.17 .\compiler.jar (with the jar’s release date). Note: I get a few warnings about ANT libraries.
  4. Copy these dependencies from the ikvm bin directory to the closure directory:
    • IKVM.OpenJDK.Core.dll
    • IKVM.OpenJDK.Jdbc.dll
    • IKVM.OpenJDK.Misc.dll
    • IKVM.OpenJDK.SwingAWT.dll
    • IKVM.OpenJDK.Text.dll
    • IKVM.OpenJDK.Util.dll
    • XML.API.dll
    • IKVM.Runtime.dll

Then you can move the compiler.jar and new compiler.exe back to your closure directory. Fredrik recommends this powershell version of execution because of the ability to specify ascii encoding overriding unicode (half the bytes):

.\compiler.exe --js .\jquery-1.4.2.js --warning_level QUIET | out-file -encoding ascii .\jquery.min.js

==============================

However, I do not have the same luck with the Closure Templates’s SoyToJsSrcCompiler.jar. I get warnings from ikvmc -target:exe -fileversion:2011.12.22 .\SoyToJsSrcCompiler.jar as with compiler.jar.

warning IKVMC0105: Unable to compile class "com.google.template.soy.jssrc.internal.GenerateSoyUtilsEscapingDirectiveCode"
    (missing class "org.apache.tools.ant.Task")
warning IKVMC0100: Class "com.google.inject.internal.asm.util.$TraceClassVisitor" not found
warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in "com.google.inject.internal.cglib.core.$DebuggingClassWriter$1.run()Ljava.lang.Object;"
    ("com.google.inject.internal.asm.util.$TraceClassVisitor")
warning IKVMC0100: Class "com.google.template.soy.jssrc.internal.GenerateSoyUtilsEscapingDirectiveCode" not found

The resulting SoyToJsSrcCompiler.exe with no command-line arguments works to show the help page, but supplying a .soy file gives:

Exception in thread "main" cli.System.MethodAccessException: 
com.google.inject.assistedinject.FactoryProvider2.getBindingFromNewInjector(java.lang.reflect.Method, System.Object[], AssistData) at 
com.google.inject.assistedinject.FactoryProvider2$$FastClassByGuice$$9dcdf6d7.invoke() at 
com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53) at 
com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56) at 
com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:90) at 
com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:107) at 
com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76) at 
com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73) at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) at 
com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:88) at
com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:150) at 
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at 
com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53) at 
com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:11 6) at 
com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:11 0) at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) at 
com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor. java:110) at 
com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:78) at 
com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:171) at 
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:111) at 
com.google.inject.Guice.createInjector(Guice.java:95) at 
com.google.inject.Guice.createInjector(Guice.java:72) at 
com.google.template.soy.MainClassUtils.createInjector(MainClassUtils.java:212) at 
com.google.template.soy.SoyToJsSrcCompiler.execMain(SoyToJsSrcCompiler.java:223) at 
com.google.template.soy.SoyToJsSrcCompiler.main(SoyToJsSrcCompiler.java:205)

Anyone know how to get this to work?

  • 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-12T19:37:50+00:00Added an answer on June 12, 2026 at 7:37 pm

    The exception can be an bug in IKVM. Which version do you use? Test the latest version.

    warning IKVMC0100: Class “com.google.template.soy.jssrc.internal.GenerateSoyUtilsEscapingDirectiveCode” not found

    Another problem can be that you have not compile all needed jar files for SoyToJsSrcCompiler.jar. In which jar file is this missing class file? Take a look in the wiki to see how you compile multiple jar files.

    The next problem can be that there is the same package in different jar files. It there are only package visible for some mthods this will not work for .NET. You can test a sharedclassloader. See the wiki for details.

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

Sidebar

Related Questions

I am wondering that how Google's Closure Compiler works. Can I, for instance, make
I have a JavaScript file that I ran through the Google Closure compiler, and
I'm using Google closure to create a simple interactive graphic in HTML/JS to be
We have an application that uses both the google closure and dojo libraries. We
As far as I know, Google Closure Template doesn't allow passing Java object into
I'm using Google Closure Compiler application (command line interface). When I run it I
I want to use the google closure compiler on the javascript source we're using.
I'm using html5boilerplate build script and when minifying the scripts (which uses Google Closure
A Google Closure library team member asserts that waiting for DOMContentReady event is a
Possible Duplicate: jQuery compiled with Google Closure Compiler I am using jQuery and I

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.