Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

object.class.forName() not working

Hi folks:

I've found a lot of examples in the internet how to access any kind of java classes via .class.forName. I've tested this in my user macro:

#set ($string="")
#set ($base64=$string.class.forName('java.util.Base64'))
base64: $base64.getClass()

that results in "$base64.getClass()" and not as expected in "java.util.Base64".

An implicit initialization with "newInstance()" has changed nothing.

#set ($base64=$string.class.forName('java.util.Base64').newInstance())

Has someone an idea, what's wrong here?

I'm using Confluence 7.4.0 Server.


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,683 views 7 31
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you